reiso
Version:
10 lines (9 loc) • 321 B
TypeScript
export declare class RedisClient {
get: <T = any>(key: string) => Promise<T>;
set: <T = any>(key: string, value: T) => Promise<void>;
constructor(client: any);
}
export declare const scopes: {
[name: string]: RedisClient;
};
export declare function getClient(scope?: string, init?: boolean): RedisClient;