You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
12 lines
387 B
TypeScript
12 lines
387 B
TypeScript
import { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';
|
|
import NUMINCRBY from './NUMINCRBY';
|
|
|
|
export default {
|
|
FIRST_KEY_INDEX: 1,
|
|
IS_READ_ONLY: false,
|
|
transformArguments(key: RedisArgument, path: RedisArgument, by: number) {
|
|
return ['JSON.NUMMULTBY', key, path, by.toString()];
|
|
},
|
|
transformReply: NUMINCRBY.transformReply
|
|
} as const satisfies Command;
|