feat: support kvrocks
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/* 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user