2025-08-12 21:50:58 +08:00
|
|
|
/* eslint-disable no-console, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
|
|
|
|
2025-08-15 19:26:13 +08:00
|
|
|
import { BaseRedisStorage } from './redis-base.db';
|
2025-08-12 21:50:58 +08:00
|
|
|
|
2025-08-15 19:26:13 +08:00
|
|
|
export class RedisStorage extends BaseRedisStorage {
|
2025-08-12 21:50:58 +08:00
|
|
|
constructor() {
|
2025-08-15 19:26:13 +08:00
|
|
|
const config = {
|
|
|
|
|
url: process.env.REDIS_URL!,
|
|
|
|
|
clientName: 'Redis'
|
2025-08-12 21:50:58 +08:00
|
|
|
};
|
2025-08-15 19:26:13 +08:00
|
|
|
const globalSymbol = Symbol.for('__MOONTV_REDIS_CLIENT__');
|
|
|
|
|
super(config, globalSymbol);
|
2025-08-12 21:50:58 +08:00
|
|
|
}
|
2025-08-15 19:26:13 +08:00
|
|
|
}
|