You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
13 lines
476 B
TypeScript
13 lines
476 B
TypeScript
import { TransformArgumentsReply } from '.';
|
|
import { pushVerdictArguments, transformReplyNumber } from './generic-transformers';
|
|
|
|
export const FIRST_KEY_INDEX = 2;
|
|
|
|
type BitOperations = 'AND' | 'OR' | 'XOR' | 'NOT';
|
|
|
|
export function transformArguments(operation: BitOperations, destKey: string, key: string | Array<string>): TransformArgumentsReply {
|
|
return pushVerdictArguments(['BITOP', operation, destKey], key);
|
|
}
|
|
|
|
export const transformReply = transformReplyNumber;
|