You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +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>;
|
||||
|
@@ -18,12 +18,12 @@
|
||||
"devDependencies": {
|
||||
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
||||
"@redis/test-utils": "*",
|
||||
"@types/node": "^18.14.1",
|
||||
"@types/node": "^18.15.10",
|
||||
"nyc": "^15.1.0",
|
||||
"release-it": "^15.6.0",
|
||||
"release-it": "^15.9.3",
|
||||
"source-map-support": "^0.5.21",
|
||||
"ts-node": "^10.9.1",
|
||||
"typedoc": "^0.23.25",
|
||||
"typescript": "^4.9.5"
|
||||
"typedoc": "^0.23.28",
|
||||
"typescript": "^5.0.2"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user