1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/GEORADIUSBYMEMBER.ts
Avital Fine 06c1d2c243 Support all GEORADIUS Commands (#2017)
* Support all GEORADIUS Commands

* move store bool to options

* simplify transformReply for store commands

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-05-11 09:36:12 -04:00

26 lines
636 B
TypeScript

import { RedisCommandArgument, RedisCommandArguments } from '.';
import { GeoSearchOptions, pushGeoRadiusArguments, GeoUnits } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
export const IS_READ_ONLY = true;
export function transformArguments(
key: RedisCommandArgument,
member: string,
radius: number,
unit: GeoUnits,
options?: GeoSearchOptions
): RedisCommandArguments {
return pushGeoRadiusArguments(
['GEORADIUSBYMEMBER'],
key,
member,
radius,
unit,
options
);
}
export declare function transformReply(): Array<RedisCommandArgument>;