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:
19
lib/commands/GEOHASH.ts
Normal file
19
lib/commands/GEOHASH.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { transformReplyStringArray } from './generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export const IS_READ_ONLY = true;
|
||||
|
||||
export function transformArguments(key: string, member: string | Array<string>): Array<string> {
|
||||
const args = ['GEOHASH', key];
|
||||
|
||||
if (typeof member === 'string') {
|
||||
args.push(member);
|
||||
} else {
|
||||
args.push(...member);
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
export const transformReply = transformReplyStringArray;
|
Reference in New Issue
Block a user