Skip to content

updated enums per discussion w/ leibele #2804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading