You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-19 07:02:06 +03:00
implement some GEO commands, improve scan generic transformer, expose RPUSHX
This commit is contained in:
16
lib/commands/GEOSEARCH.ts
Normal file
16
lib/commands/GEOSEARCH.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { GeoSearchFrom, GeoSearchBy, GeoSearchOptions, pushGeoSearchArguments, transformReplyStringArray } from './generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export const IS_READ_ONLY = true;
|
||||
|
||||
export function transformArguments(
|
||||
key: string,
|
||||
from: GeoSearchFrom,
|
||||
by: GeoSearchBy,
|
||||
options?: GeoSearchOptions
|
||||
): Array<string> {
|
||||
return pushGeoSearchArguments(['GEOSEARCH'], key, from, by, options);
|
||||
}
|
||||
|
||||
export const transformReply = transformReplyStringArray;
|
Reference in New Issue
Block a user