Files
micro-service-api/node_modules/@redis/client/dist/lib/commands/HEXPIRETIME.js
2025-11-11 12:36:06 +07:00

26 lines
865 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HASH_EXPIRATION_TIME = void 0;
exports.HASH_EXPIRATION_TIME = {
/** The field does not exist */
FIELD_NOT_EXISTS: -2,
/** The field exists but has no associated expire */
NO_EXPIRATION: -1,
};
exports.default = {
IS_READ_ONLY: true,
/**
* Returns the absolute Unix timestamp (since January 1, 1970) at which the given hash fields will expire
* @param parser - The Redis command parser
* @param key - Key of the hash
* @param fields - Fields to check expiration time
*/
parseCommand(parser, key, fields) {
parser.push('HEXPIRETIME');
parser.pushKey(key);
parser.push('FIELDS');
parser.pushVariadicWithLength(fields);
},
transformReply: undefined
};
//# sourceMappingURL=HEXPIRETIME.js.map