You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
WIP
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
import { transformArguments as transformXAutoClaimArguments } from './XAUTOCLAIM';
|
||||
// import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
// import { transformArguments as transformXAutoClaimArguments } from './XAUTOCLAIM';
|
||||
|
||||
export { FIRST_KEY_INDEX } from './XAUTOCLAIM';
|
||||
// export { FIRST_KEY_INDEX } from './XAUTOCLAIM';
|
||||
|
||||
export function transformArguments(...args: Parameters<typeof transformXAutoClaimArguments>): RedisCommandArguments {
|
||||
return [
|
||||
...transformXAutoClaimArguments(...args),
|
||||
'JUSTID'
|
||||
];
|
||||
}
|
||||
// export function transformArguments(...args: Parameters<typeof transformXAutoClaimArguments>): RedisCommandArguments {
|
||||
// return [
|
||||
// ...transformXAutoClaimArguments(...args),
|
||||
// 'JUSTID'
|
||||
// ];
|
||||
// }
|
||||
|
||||
type XAutoClaimJustIdRawReply = [RedisCommandArgument, Array<RedisCommandArgument>];
|
||||
// type XAutoClaimJustIdRawReply = [RedisCommandArgument, Array<RedisCommandArgument>];
|
||||
|
||||
interface XAutoClaimJustIdReply {
|
||||
nextId: RedisCommandArgument;
|
||||
messages: Array<RedisCommandArgument>;
|
||||
}
|
||||
// interface XAutoClaimJustIdReply {
|
||||
// nextId: RedisCommandArgument;
|
||||
// messages: Array<RedisCommandArgument>;
|
||||
// }
|
||||
|
||||
export function transformReply(reply: XAutoClaimJustIdRawReply): XAutoClaimJustIdReply {
|
||||
return {
|
||||
nextId: reply[0],
|
||||
messages: reply[1]
|
||||
};
|
||||
}
|
||||
// export function transformReply(reply: XAutoClaimJustIdRawReply): XAutoClaimJustIdReply {
|
||||
// return {
|
||||
// nextId: reply[0],
|
||||
// messages: reply[1]
|
||||
// };
|
||||
// }
|
||||
|
Reference in New Issue
Block a user