resque / redis-namespace

This gem adds a Redis::Namespace class which can be used to namespace Redis keys.
http://redis.io
MIT License
695 stars 192 forks source link

Auto delete keys from Redis after specified time #229

Closed MuhammadRazaAslam closed 1 year ago

MuhammadRazaAslam commented 1 year ago

Hi,

Is there a way to set the expiry time for each key? After the specified expiry time. key should be automatically deleted from redis.

PatrickTulskie commented 1 year ago

There's no global setting, but you can uses set(ex: time_limit, ...) to achieve this.