mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-18 15:04:41 +08:00
14 lines
434 B
TypeScript
14 lines
434 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 KvrocksStorage extends BaseRedisStorage {
|
|
constructor() {
|
|
const config = {
|
|
url: process.env.KVROCKS_URL!,
|
|
clientName: 'Kvrocks'
|
|
};
|
|
const globalSymbol = Symbol.for('__MOONTV_KVROCKS_CLIENT__');
|
|
super(config, globalSymbol);
|
|
}
|
|
} |