You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
updated per discussion w/ leibele (#2804)
This commit is contained in:
@@ -8,16 +8,16 @@ import { pushVerdictArgument } from './generic-transformers';
|
||||
export const HASH_EXPIRATION = {
|
||||
/** @property {number} */
|
||||
/** The field does not exist */
|
||||
FieldNotExists: -2,
|
||||
FIELD_NOT_EXISTS: -2,
|
||||
/** @property {number} */
|
||||
/** Specified NX | XX | GT | LT condition not met */
|
||||
ConditionNotMet: 0,
|
||||
CONDITION_NOT_MET: 0,
|
||||
/** @property {number} */
|
||||
/** Expiration time was set or updated */
|
||||
Updated: 1,
|
||||
UPDATED: 1,
|
||||
/** @property {number} */
|
||||
/** Field deleted because the specified expiration time is in the past */
|
||||
Deleted: 2
|
||||
DELETED: 2
|
||||
} as const;
|
||||
|
||||
export type HashExpiration = typeof HASH_EXPIRATION[keyof typeof HASH_EXPIRATION];
|
||||
|
@@ -4,10 +4,10 @@ import { pushVerdictArgument } from './generic-transformers';
|
||||
export const HASH_EXPIRATION_TIME = {
|
||||
/** @property {number} */
|
||||
/** The field does not exist */
|
||||
FieldNotExists: -2,
|
||||
FIELD_NOT_EXISTS: -2,
|
||||
/** @property {number} */
|
||||
/** The field exists but has no associated expire */
|
||||
NoExpiration: -1,
|
||||
NO_EXPIRATION: -1,
|
||||
} as const;
|
||||
|
||||
export const FIRST_KEY_INDEX = 1
|
||||
|
Reference in New Issue
Block a user