You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
* Ensure that transformReply is optionally passed through to commands in legacy mode within multi * Execute transformReply on legacy #sendCommand * Scope transform changes to hGetAll * Extensible method of transforming legacy replies, expands RedisCommand interface * check `TRANSFORM_LEGACY_REPLY` on client creation (rather then on command exec), add tests Co-authored-by: Leibale Eidelman <me@leibale.com>
14 lines
381 B
TypeScript
14 lines
381 B
TypeScript
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
export const TRANSFORM_LEGACY_REPLY = true;
|
|
|
|
export function transformArguments(key: RedisCommandArgument): RedisCommandArguments {
|
|
return ['HGETALL', key];
|
|
}
|
|
|
|
export { transformTuplesReply as transformReply } from './generic-transformers';
|