Skip to content

Support HEXPIRE #161

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

Open
brkn opened this issue Apr 17, 2025 · 0 comments
Open

Support HEXPIRE #161

brkn opened this issue Apr 17, 2025 · 0 comments

Comments

@brkn
Copy link

brkn commented Apr 17, 2025

Redis, since v7.4.0, enables a field inside a hash key to be expired

https://redis.io/docs/latest/commands/hexpire/

I am not sure how would API look like

hash = Kredis.hash "myhash"
hash.update("key" => "value", "key2" => "value2") # => HSET myhash "key", "value", "key2", "value2"
hash.expire_keys("key2", "key", in: 2.minutes) # => HEXPIRE myhash 120 FIELDS 2 "key2" "key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant