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