-first commit
This commit is contained in:
28
node_modules/@redis/client/dist/lib/commands/LPOS.js
generated
vendored
Normal file
28
node_modules/@redis/client/dist/lib/commands/LPOS.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
CACHEABLE: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Constructs the LPOS command
|
||||
*
|
||||
* @param parser - The command parser
|
||||
* @param key - The key of the list
|
||||
* @param element - The element to search for
|
||||
* @param options - Optional parameters for RANK and MAXLEN
|
||||
* @see https://redis.io/commands/lpos/
|
||||
*/
|
||||
parseCommand(parser, key, element, options) {
|
||||
parser.push('LPOS');
|
||||
parser.pushKey(key);
|
||||
parser.push(element);
|
||||
if (options?.RANK !== undefined) {
|
||||
parser.push('RANK', options.RANK.toString());
|
||||
}
|
||||
if (options?.MAXLEN !== undefined) {
|
||||
parser.push('MAXLEN', options.MAXLEN.toString());
|
||||
}
|
||||
},
|
||||
transformReply: undefined
|
||||
};
|
||||
//# sourceMappingURL=LPOS.js.map
|
||||
Reference in New Issue
Block a user