1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
This commit is contained in:
Leibale
2023-06-22 18:18:23 -04:00
parent b46f08228c
commit 2b318d4100
27 changed files with 595 additions and 578 deletions

View File

@@ -1,16 +1,11 @@
// import { RedisCommandArgument, RedisCommandArguments } from '.';
// import { transformArguments as transformZPopMinArguments } from './ZPOPMIN';
import { RedisArgument, Command } from '../RESP/types';
import { transformSortedSetReply } from './generic-transformers';
// export { FIRST_KEY_INDEX } from './ZPOPMIN';
// export function transformArguments(
// key: RedisCommandArgument,
// count: number
// ): RedisCommandArguments {
// return [
// ...transformZPopMinArguments(key),
// count.toString()
// ];
// }
// export { transformSortedSetWithScoresReply as transformReply } from './generic-transformers';
export default {
FIRST_KEY_INDEX: undefined,
IS_READ_ONLY: false,
transformArguments(key: RedisArgument, count: number) {
return ['ZPOPMIN', key, count.toString()];
},
transformReply: transformSortedSetReply
} as const satisfies Command;