This commit is contained in:
2026-01-28 00:55:06 +03:00
parent fc033be6a5
commit 25fc82c14a
1642 changed files with 101122 additions and 0 deletions

37
node_modules/@redis/client/dist/lib/commands/SET.js generated vendored Normal file
View File

@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = exports.FIRST_KEY_INDEX = void 0;
exports.FIRST_KEY_INDEX = 1;
function transformArguments(key, value, options) {
const args = [
'SET',
key,
typeof value === 'number' ? value.toString() : value
];
if (options?.EX !== undefined) {
args.push('EX', options.EX.toString());
}
else if (options?.PX !== undefined) {
args.push('PX', options.PX.toString());
}
else if (options?.EXAT !== undefined) {
args.push('EXAT', options.EXAT.toString());
}
else if (options?.PXAT !== undefined) {
args.push('PXAT', options.PXAT.toString());
}
else if (options?.KEEPTTL) {
args.push('KEEPTTL');
}
if (options?.NX) {
args.push('NX');
}
else if (options?.XX) {
args.push('XX');
}
if (options?.GET) {
args.push('GET');
}
return args;
}
exports.transformArguments = transformArguments;