@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) • 351 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = void 0;
function transformArguments(code, options) {
const args = ["FUNCTION", "LOAD"];
if (options?.REPLACE) {
args.push("REPLACE");
}
args.push(code);
return args;
}
exports.transformArguments = transformArguments;
;