You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
* (docs) bloom: add jsdocs for all commands * (docs) json: add jsdocs * (docs) search: add jsdocs for all commands * (docs) jsdocs for std commands * (docs) jsdoc comments to time series commands
18 lines
732 B
TypeScript
18 lines
732 B
TypeScript
import { CommandParser } from '@redis/client/dist/lib/client/parser';
|
|
import { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';
|
|
|
|
export default {
|
|
IS_READ_ONLY: false,
|
|
/**
|
|
* Deletes a compaction rule between source and destination time series
|
|
* @param parser - The command parser
|
|
* @param sourceKey - The source time series key
|
|
* @param destinationKey - The destination time series key
|
|
*/
|
|
parseCommand(parser: CommandParser, sourceKey: RedisArgument, destinationKey: RedisArgument) {
|
|
parser.push('TS.DELETERULE');
|
|
parser.pushKeys([sourceKey, destinationKey]);
|
|
},
|
|
transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
|
|
} as const satisfies Command;
|