1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

more commands

This commit is contained in:
dovi
2023-07-10 17:40:37 -04:00
parent e176a387b1
commit 513668e545
8 changed files with 122 additions and 109 deletions

View File

@@ -1,7 +1,10 @@
export const FIRST_KEY_INDEX = 1;
import { RedisArgument, Command, ArrayReply, NumberReply, DoubleReply, NullReply } from '@redis/client/dist/lib/RESP/types';
export function transformArguments(key: string, path: string, by: number): Array<string> {
export default {
FIRST_KEY_INDEX: 1,
IS_READ_ONLY: false,
transformArguments(key: RedisArgument, path: RedisArgument, by: number) {
return ['JSON.NUMINCRBY', key, path, by.toString()];
}
export { transformNumbersReply as transformReply } from '.';
},
transformReply: undefined as unknown as () => ArrayReply<NumberReply | DoubleReply | NullReply>
} as const satisfies Command;