refactor server

This commit is contained in:
Alex Holliday committed 2025-07-25 15:15:14 -07:00
1 parent 6cb538ce69
commit acc910cbc0
48 files changed
+584 -650

No files matched your search

+5
View File
@@ -2,12 +2,17 @@ const SERVICE_NAME = "RedisService";
class RedisService {
static SERVICE_NAME = SERVICE_NAME;
constructor({ Redis, logger }) {
this.Redis = Redis;
this.connections = new Set();
this.logger = logger;
}
get serviceName() {
return RedisService.SERVICE_NAME;
}
getNewConnection(options = {}) {
const connection = new this.Redis(process.env.REDIS_URL, {
retryStrategy: (times) => {