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