NodeRedis/node-redis

View on GitHub
packages/client/lib/commands/GEORADIUS_RO.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Command } from '../RESP/types';
import GEORADIUS, { parseGeoRadiusArguments } from './GEORADIUS';

export default {
  CACHEABLE: true,
  IS_READ_ONLY: true,
  parseCommand(...args: Parameters<typeof parseGeoRadiusArguments>) {
    args[0].push('GEORADIUS_RO');
    parseGeoRadiusArguments(...args);
  },
  transformReply: GEORADIUS.transformReply
} as const satisfies Command;