2
votes

An HSET is like so:

HSET myhash field1 "Hello"

is there a way to put an expiration/TTL on the "field1" key. It's trivial to put an expiration on myhash tmk, but I don't know how to put a TTL on key of a hash.

https://redis.io/commands/expire

Otherwise, I am stuck using:

SET field1 "Hello"
EXPIRE field1 10

and putting all my keys at the top-level instead of a hash :(

1

1 Answers

1
votes