1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

some commands

This commit is contained in:
Leibale
2023-05-09 14:04:26 +03:00
parent a6c0d1dbb3
commit d59254e497
21 changed files with 295 additions and 235 deletions

View File

@@ -1,13 +1,14 @@
// import { RedisCommandArguments } from '.';
// import { transformArguments as transformZUnionArguments } from './ZUNION';
import { Command } from '../RESP/types';
import ZUNION from './ZUNION';
import { transformSortedSetReply } from './generic-transformers';
// export { FIRST_KEY_INDEX, IS_READ_ONLY } from './ZUNION';
// export function transformArguments(...args: Parameters<typeof transformZUnionArguments>): RedisCommandArguments {
// return [
// ...transformZUnionArguments(...args),
// 'WITHSCORES'
// ];
// }
// export { transformSortedSetWithScoresReply as transformReply } from './generic-transformers';
export default {
FIRST_KEY_INDEX: ZUNION.FIRST_KEY_INDEX,
IS_READ_ONLY: ZUNION.IS_READ_ONLY,
transformArguments(...args: Parameters<typeof ZUNION['transformArguments']>) {
const redisArgs = ZUNION.transformArguments(...args);
redisArgs.push('WITHSCORES');
return redisArgs;
},
transformReply: transformSortedSetReply
} as const satisfies Command;