Skip to content

Commit e53da7e

Browse files
committed
keep in sync with v5
1 parent 72e2673 commit e53da7e

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

packages/client/lib/commands/CLIENT_KILL.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type ClientKillSkipMe = CLIENT_KILL_FILTERS['SKIP_ME'] | (ClientKillFilte
4141
skipMe: boolean;
4242
});
4343

44-
export interface ClientKillMaxAge extends ClientKillFilterCommon<CLIENT_KILL_FILTERS['MANAGE']> {
44+
export interface ClientKillMaxAge extends ClientKillFilterCommon<CLIENT_KILL_FILTERS['MAXAGE']> {
4545
maxAge: number;
4646
}
4747

@@ -104,7 +104,7 @@ function pushFilter(parser: CommandParser, filter: ClientKillFilter): void {
104104
break;
105105

106106
case CLIENT_KILL_FILTERS.MAXAGE:
107-
args.push(filter.maxAge.toString());
107+
parser.push(filter.maxAge.toString());
108108
break;
109109
}
110110
}

packages/client/lib/commands/HSCAN_NOVALUES.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
import { RedisArgument, BlobStringReply, Command } from '../RESP/types';
2-
import { ScanCommonOptions, pushScanArguments } from './SCAN';
2+
import { CommandParser } from '../client/parser';
3+
import { ScanCommonOptions } from './SCAN';
4+
import HSCAN from './HSCAN';
35

46
export default {
57
FIRST_KEY_INDEX: 1,
68
IS_READ_ONLY: true,
7-
transformArguments(
9+
parseCommand(
10+
parser: CommandParser,
811
key: RedisArgument,
912
cursor: RedisArgument,
1013
options?: ScanCommonOptions
1114
) {
12-
const args = pushScanArguments(['HSCAN', key], cursor, options);
13-
args.push('NOVALUES');
14-
return args;
15+
HSCAN.parseCommand(parser, key, cursor, options);
16+
parser.push('NOVALUES');
1517
},
18+
transformArguments(
19+
key: RedisArgument,
20+
cursor: RedisArgument,
21+
options?: ScanCommonOptions
22+
) { return [] },
1623
transformReply([cursor, fields]: [BlobStringReply, Array<BlobStringReply>]) {
1724
return {
1825
cursor,

0 commit comments

Comments
 (0)