22 lines
956 B
TypeScript
22 lines
956 B
TypeScript
|
|
import { CommandParser } from '../client/parser';
|
||
|
|
import { RedisArgument, ArrayReply, TuplesReply, BlobStringReply, SetReply, UnwrapReply } from '../RESP/types';
|
||
|
|
export type CommandGetKeysAndFlagsRawReply = ArrayReply<TuplesReply<[
|
||
|
|
key: BlobStringReply,
|
||
|
|
flags: SetReply<BlobStringReply>
|
||
|
|
]>>;
|
||
|
|
declare const _default: {
|
||
|
|
readonly NOT_KEYED_COMMAND: true;
|
||
|
|
readonly IS_READ_ONLY: true;
|
||
|
|
/**
|
||
|
|
* Extracts the key names and access flags from a Redis command
|
||
|
|
* @param parser - The Redis command parser
|
||
|
|
* @param args - Command arguments to analyze
|
||
|
|
*/
|
||
|
|
readonly parseCommand: (this: void, parser: CommandParser, args: Array<RedisArgument>) => void;
|
||
|
|
readonly transformReply: (this: void, reply: UnwrapReply<CommandGetKeysAndFlagsRawReply>) => {
|
||
|
|
key: BlobStringReply<string>;
|
||
|
|
flags: SetReply<BlobStringReply<string>>;
|
||
|
|
}[];
|
||
|
|
};
|
||
|
|
export default _default;
|
||
|
|
//# sourceMappingURL=COMMAND_GETKEYSANDFLAGS.d.ts.map
|