123
This commit is contained in:
21
node_modules/@redis/client/dist/lib/commands/RESTORE.js
generated
vendored
Normal file
21
node_modules/@redis/client/dist/lib/commands/RESTORE.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
|
||||
exports.FIRST_KEY_INDEX = 1;
|
||||
function transformArguments(key, ttl, serializedValue, options) {
|
||||
const args = ['RESTORE', key, ttl.toString(), serializedValue];
|
||||
if (options?.REPLACE) {
|
||||
args.push('REPLACE');
|
||||
}
|
||||
if (options?.ABSTTL) {
|
||||
args.push('ABSTTL');
|
||||
}
|
||||
if (options?.IDLETIME) {
|
||||
args.push('IDLETIME', options.IDLETIME.toString());
|
||||
}
|
||||
if (options?.FREQ) {
|
||||
args.push('FREQ', options.FREQ.toString());
|
||||
}
|
||||
return args;
|
||||
}
|
||||
exports.transformArguments = transformArguments;
|
||||
Reference in New Issue
Block a user