-first commit
This commit is contained in:
22
node_modules/@redis/client/dist/lib/commands/EXPIREAT.js
generated
vendored
Normal file
22
node_modules/@redis/client/dist/lib/commands/EXPIREAT.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const generic_transformers_1 = require("./generic-transformers");
|
||||
exports.default = {
|
||||
/**
|
||||
* Sets the expiration for a key at a specific Unix timestamp
|
||||
* @param parser - The Redis command parser
|
||||
* @param key - Key to set expiration on
|
||||
* @param timestamp - Unix timestamp (seconds since January 1, 1970) or Date object
|
||||
* @param mode - Expiration mode: NX (only if key has no expiry), XX (only if key has existing expiry), GT (only if new expiry is greater than current), LT (only if new expiry is less than current)
|
||||
*/
|
||||
parseCommand(parser, key, timestamp, mode) {
|
||||
parser.push('EXPIREAT');
|
||||
parser.pushKey(key);
|
||||
parser.push((0, generic_transformers_1.transformEXAT)(timestamp));
|
||||
if (mode) {
|
||||
parser.push(mode);
|
||||
}
|
||||
},
|
||||
transformReply: undefined
|
||||
};
|
||||
//# sourceMappingURL=EXPIREAT.js.map
|
||||
Reference in New Issue
Block a user