Path mapping & deps fix & bundler changed to tsup

This commit is contained in:
Judson Cairo
2024-08-11 20:47:17 -03:00
parent feb7b795e9
commit 32e58debc6
90 changed files with 645 additions and 667 deletions

View File

@@ -1,6 +1,7 @@
import { ICache } from '../api/abstract/abstract.cache';
import { CacheConf, ConfigService } from '../config/env.config';
import { Logger } from '../config/logger.config';
import { ICache } from '@api/abstract/abstract.cache';
import { CacheConf, ConfigService } from '@config/env.config';
import { Logger } from '@config/logger.config';
import { LocalCache } from './localcache';
import { RedisCache } from './rediscache';

View File

@@ -1,8 +1,7 @@
import { ICache } from '@api/abstract/abstract.cache';
import { CacheConf, CacheConfLocal, ConfigService } from '@config/env.config';
import NodeCache from 'node-cache';
import { ICache } from '../api/abstract/abstract.cache';
import { CacheConf, CacheConfLocal, ConfigService } from '../config/env.config';
export class LocalCache implements ICache {
private conf: CacheConfLocal;
static localCache = new NodeCache();

View File

@@ -1,10 +1,9 @@
import { CacheConf, CacheConfRedis, configService } from '@config/env.config';
import { Logger } from '@config/logger.config';
import { createClient, RedisClientType } from 'redis';
import { CacheConf, CacheConfRedis, configService } from '../config/env.config';
import { Logger } from '../config/logger.config';
class Redis {
private logger = new Logger(Redis.name);
private logger = new Logger('Redis');
private client: RedisClientType = null;
private conf: CacheConfRedis;
private connected = false;

View File

@@ -1,13 +1,13 @@
import { ICache } from '@api/abstract/abstract.cache';
import { CacheConf, CacheConfRedis, ConfigService } from '@config/env.config';
import { Logger } from '@config/logger.config';
import { BufferJSON } from 'baileys';
import { RedisClientType } from 'redis';
import { ICache } from '../api/abstract/abstract.cache';
import { CacheConf, CacheConfRedis, ConfigService } from '../config/env.config';
import { Logger } from '../config/logger.config';
import { redisClient } from './rediscache.client';
export class RedisCache implements ICache {
private readonly logger = new Logger(RedisCache.name);
private readonly logger = new Logger('RedisCache');
private client: RedisClientType;
private conf: CacheConfRedis;