UNPKG

@valkey/client

Version:

The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

18 lines (17 loc) 599 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformReply = exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0; exports.FIRST_KEY_INDEX = 1; exports.IS_READ_ONLY = true; function transformArguments(key, member1, member2, unit) { const args = ["GEODIST", key, member1, member2]; if (unit) { args.push(unit); } return args; } exports.transformArguments = transformArguments; function transformReply(reply) { return reply === null ? null : Number(reply); } exports.transformReply = transformReply;