14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
/* eslint-disable no-console, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
|
|
import { BaseRedisStorage } from './redis-base.db';
|
|
|
|
export class RedisStorage extends BaseRedisStorage {
|
|
constructor() {
|
|
const config = {
|
|
url: process.env.REDIS_URL!,
|
|
clientName: 'Redis'
|
|
};
|
|
const globalSymbol = Symbol.for('__MOONTV_REDIS_CLIENT__');
|
|
super(config, globalSymbol);
|
|
}
|
|
} |