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.

13 lines (12 loc) 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformArguments = exports.IS_READ_ONLY = void 0; exports.IS_READ_ONLY = true; function transformArguments(version, ...optionalArguments) { const args = ["LOLWUT"]; if (version) { args.push("VERSION", version.toString(), ...optionalArguments.map(String)); } return args; } exports.transformArguments = transformArguments;