1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-19 07:02:06 +03:00

add some missing commands

This commit is contained in:
leibale
2021-07-13 19:35:07 -04:00
parent bf44b0bf43
commit 4dca486a9c
43 changed files with 721 additions and 5 deletions

9
lib/commands/SETBIT.ts Normal file
View File

@@ -0,0 +1,9 @@
import { BitValue, transformReplyBit } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
export function transformArguments(key: string, offset: number, value: BitValue) {
return ['SETBIT', key, offset.toString(), value.toString()];
}
export const transformReply = transformReplyBit;