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,4 +1,4 @@
|
||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
@@ -39,7 +39,7 @@ export function transformArguments(
|
||||
}
|
||||
|
||||
args.push('ITEMS');
|
||||
return pushVerdictArguments(args, items);
|
||||
return pushVariadicArguments(args, items);
|
||||
}
|
||||
|
||||
export { transformBooleanArrayReply as transformReply } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -9,7 +9,7 @@ export function transformArguments(
|
||||
key: string,
|
||||
items: string | Array<string>
|
||||
): RedisCommandArguments {
|
||||
return pushVerdictArguments(['CMS.QUERY', key], items);
|
||||
return pushVariadicArguments(['CMS.QUERY', key], items);
|
||||
}
|
||||
|
||||
export declare function transformReply(): Array<number>;
|
||||
|
@@ -10,7 +10,7 @@ import * as INSERTNX from './INSERTNX';
|
||||
import * as LOADCHUNK from './LOADCHUNK';
|
||||
import * as RESERVE from './RESERVE';
|
||||
import * as SCANDUMP from './SCANDUMP';
|
||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
|
||||
export default {
|
||||
@@ -58,5 +58,5 @@ export function pushInsertOptions(
|
||||
}
|
||||
|
||||
args.push('ITEMS');
|
||||
return pushVerdictArguments(args, items);
|
||||
return pushVariadicArguments(args, items);
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
import { pushVerdictArgument } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { CompressionOption, pushCompressionArgument } from '.';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
@@ -13,7 +13,7 @@ export function transformArguments(
|
||||
srcKeys: RedisCommandArgument | Array<RedisCommandArgument>,
|
||||
options?: MergeOptions
|
||||
): RedisCommandArguments {
|
||||
const args = pushVerdictArgument(
|
||||
const args = pushVariadicArgument(
|
||||
['TDIGEST.MERGE', destKey],
|
||||
srcKeys
|
||||
);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -7,7 +7,7 @@ export function transformArguments(
|
||||
key: string,
|
||||
items: string | Array<string>
|
||||
): RedisCommandArguments {
|
||||
return pushVerdictArguments(['TOPK.ADD', key], items);
|
||||
return pushVariadicArguments(['TOPK.ADD', key], items);
|
||||
}
|
||||
|
||||
export declare function transformReply(): Array<null | string>;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -9,7 +9,7 @@ export function transformArguments(
|
||||
key: string,
|
||||
items: string | Array<string>
|
||||
): RedisCommandArguments {
|
||||
return pushVerdictArguments(['TOPK.COUNT', key], items);
|
||||
return pushVariadicArguments(['TOPK.COUNT', key], items);
|
||||
}
|
||||
|
||||
export declare function transformReply(): Array<number>;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -9,7 +9,7 @@ export function transformArguments(
|
||||
key: string,
|
||||
items: string | Array<string>
|
||||
): RedisCommandArguments {
|
||||
return pushVerdictArguments(['TOPK.QUERY', key], items);
|
||||
return pushVariadicArguments(['TOPK.QUERY', key], items);
|
||||
}
|
||||
|
||||
export declare function transformReply(): Array<number>;
|
||||
|
Reference in New Issue
Block a user