Fixed 267U.pre2

This commit is contained in:
2026-07-26 18:25:37 +09:00
parent 50bfaeafdf
commit 317d00a284
1286 changed files with 80222 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import Redis from "ioredis";
import config from "../config/index.js";
export function createConnection() {
let source = config.redis;
return new Redis({
port: source.port,
host: source.host,
family: source.family ?? 0,
password: source.pass,
username: source.user ?? "default",
keyPrefix: `${source.prefix}:`,
db: source.db || 0,
tls: source.tls
});
}
export const subscriber = createConnection();
subscriber.subscribe(config.redis.prefix ?? config.host);
export const redisClient = createConnection();