You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
24 lines
453 B
TypeScript
24 lines
453 B
TypeScript
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
interface BitCountRange {
|
|
start: number;
|
|
end: number;
|
|
}
|
|
|
|
export function transformArguments(key: string, range?: BitCountRange): Array<string> {
|
|
const args = ['BITCOUNT', key];
|
|
|
|
if (range) {
|
|
args.push(
|
|
range.start.toString(),
|
|
range.end.toString()
|
|
);
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): number;
|