You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
20 lines
435 B
TypeScript
20 lines
435 B
TypeScript
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
interface MemoryUsageOptions {
|
|
SAMPLES?: number;
|
|
}
|
|
|
|
export function transformArguments(key: string, options?: MemoryUsageOptions): Array<string> {
|
|
const args = ['MEMORY', 'USAGE', key];
|
|
|
|
if (options?.SAMPLES) {
|
|
args.push('SAMPLES', options.SAMPLES.toString());
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): number | null;
|