You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs
This commit is contained in:
33
packages/client/lib/commands/XPENDING_RANGE.ts
Normal file
33
packages/client/lib/commands/XPENDING_RANGE.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export const IS_READ_ONLY = true;
|
||||
|
||||
interface XPendingRangeOptions {
|
||||
IDLE?: number;
|
||||
consumer?: string;
|
||||
}
|
||||
|
||||
export function transformArguments(
|
||||
key: string,
|
||||
group: string,
|
||||
start: string,
|
||||
end: string,
|
||||
count: number,
|
||||
options?: XPendingRangeOptions
|
||||
): Array<string> {
|
||||
const args = ['XPENDING', key, group];
|
||||
|
||||
if (options?.IDLE) {
|
||||
args.push('IDLE', options.IDLE.toString());
|
||||
}
|
||||
|
||||
args.push(start, end, count.toString());
|
||||
|
||||
if (options?.consumer) {
|
||||
args.push(options.consumer);
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
export { transformReplyStreamMessages as transformReply } from './generic-transformers';
|
Reference in New Issue
Block a user