Skip to content

Commit

Permalink
updated per discussion w/ leibele (#2804)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpotter authored Jul 24, 2024
1 parent b884e13 commit 6f79b49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/client/lib/commands/HEXPIRE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
4 changes: 2 additions & 2 deletions packages/client/lib/commands/HEXPIRETIME.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f79b49

Please sign in to comment.