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.

17 lines (16 loc) 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformArguments = void 0; function transformArguments(...[parameterOrConfig, value]) { const args = ["CONFIG", "SET"]; if (typeof parameterOrConfig === "string") { args.push(parameterOrConfig, value); } else { for (const [key, value] of Object.entries(parameterOrConfig)) { args.push(key, value); } } return args; } exports.transformArguments = transformArguments;