Skip to content

Fix commands H*EXPIRE* and H*TTL to include constant FIELDS #13270

Merged
moticless merged 9 commits intoredis:hash-field-expiry-integfrom
moticless:hfe-integ-fix-hexpire-cmd
May 16, 2024
Merged

Fix commands H*EXPIRE* and H*TTL to include constant FIELDS #13270
moticless merged 9 commits intoredis:hash-field-expiry-integfrom
moticless:hfe-integ-fix-hexpire-cmd

Conversation

@moticless
Copy link
Copy Markdown
Collaborator

@moticless moticless commented May 15, 2024

Instead of HEXPIRE myhash 1 NX 1 field1
will be: HEXPIRE myhash 1 NX FIELDS 1 field1

The same goes to: HPEXPIRE, HEXPIREAT, HPEXPIREAT, HEXPIRETIME, HPEXPIRETIME, HPTTL, HTTL, HPERSIST

@moticless moticless changed the base branch from unstable to hash-field-expiry-integ May 15, 2024 11:04
@moticless moticless requested a review from tezc May 15, 2024 13:01
Comment thread src/t_hash.c Outdated
tezc
tezc previously approved these changes May 15, 2024
@dwdougherty
Copy link
Copy Markdown
Contributor

dwdougherty commented May 15, 2024

Apologies if I'm intruding here, but I don't see HPEXPIREAT in the list of changes. Maybe it's in another PR? Also, from the PRD, it looks like HPERSIST should also have the FIELDS argument.

Comment thread src/commands/hexpire.json Outdated
@moticless
Copy link
Copy Markdown
Collaborator Author

@dwdougherty, I forgot to modify hpersist.json. Thanks!

Comment thread src/t_hash.c Outdated
Comment thread src/t_hash.c Outdated
@moticless moticless merged commit 7167651 into redis:hash-field-expiry-integ May 16, 2024
@moticless moticless deleted the hfe-integ-fix-hexpire-cmd branch May 16, 2024 16:36
tezc added a commit that referenced this pull request May 18, 2024
FIELDS keyword was added as part of
[#13270](#13270). 

It was missing in
[#13243](#13243)
funny-dog pushed a commit to funny-dog/redis that referenced this pull request Sep 17, 2025
…13270)

The same goes to: HPEXPIRE, HEXPIREAT, HPEXPIREAT, HEXPIRETIME,
HPEXPIRETIME, HPTTL, HTTL, HPERSIST
funny-dog pushed a commit to funny-dog/redis that referenced this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants