You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
WIP
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user