Martin Perez
2018-10-26 08:15:09 UTC
Hello everyone.
I know that there is no SETEX semantics for the key of a Hash object which
means the developer needs to deal with the atomic expiration in the best
way possible to avoid race conditions. What would be the best-recommended
pattern to expire an entire hash on a system that is under a decent write
load (e.g. half million writes per day). I am considering approaches like
sending an expire on every write, write a Lua script or keep a set with
keys an expiration times and have custom delete logic in the application
for traversing the expire set. But I'm not totally confident about the
performance implications of any of these measures. An option for setting an
expiration when creating a hash would come really handy here although
perhaps this approach ends up being the same as sending a new expire with
every update approach.
Any ideas?
Best Regards,
Martin
I know that there is no SETEX semantics for the key of a Hash object which
means the developer needs to deal with the atomic expiration in the best
way possible to avoid race conditions. What would be the best-recommended
pattern to expire an entire hash on a system that is under a decent write
load (e.g. half million writes per day). I am considering approaches like
sending an expire on every write, write a Lua script or keep a set with
keys an expiration times and have custom delete logic in the application
for traversing the expire set. But I'm not totally confident about the
performance implications of any of these measures. An option for setting an
expiration when creating a hash would come really handy here although
perhaps this approach ends up being the same as sending a new expire with
every update approach.
Any ideas?
Best Regards,
Martin
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.