1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/MEMORY_USAGE.ts

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;