You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-09-02 22:41:17 +03:00
18 lines
572 B
TypeScript
18 lines
572 B
TypeScript
import { transformReplyTupels, TupelsObject } from './generic-transformers';
|
|
import { transformArguments as transformHRandFieldCountArguments } from './HRANDFIELD_COUNT';
|
|
|
|
export { FIRST_KEY_INDEX } from './HRANDFIELD_COUNT';
|
|
|
|
export function transformArguments(key: string, count: number): Array<string> {
|
|
return [
|
|
...transformHRandFieldCountArguments(key, count),
|
|
'WITHVALUES'
|
|
];
|
|
}
|
|
|
|
export function transformReply(reply: Array<string> | null): TupelsObject | null {
|
|
if (reply === null) return null;
|
|
|
|
return transformReplyTupels(reply);
|
|
}
|