Files
micro-service-api/node_modules/@redis/json/dist/lib/commands/NUMINCRBY.d.ts

21 lines
1.0 KiB
TypeScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, ArrayReply, NumberReply, DoubleReply, NullReply, BlobStringReply, UnwrapReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
/**
* Increments a numeric value stored in a JSON document by a given number.
* Returns the value after increment, or null if the key/path doesn't exist or value is not numeric.
*
* @param parser - The Redis command parser
* @param key - The key containing the JSON document
* @param path - Path to the numeric value
* @param by - Amount to increment by
*/
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, by: number) => void;
readonly transformReply: {
readonly 2: (reply: UnwrapReply<BlobStringReply>) => number | (number | null)[];
readonly 3: () => ArrayReply<NumberReply | DoubleReply | NullReply>;
};
};
export default _default;
//# sourceMappingURL=NUMINCRBY.d.ts.map