How To Expire Keys in Redis
Redis is an open-source, in-memory key-value data store. Depending on the needs of your application, there may be cases where you’ve set a key but you know you will want to delete it later on after a certain amount of time has passed. This tutorial explains how to set keys to expire, check how long a key has until it will expire, and cancel a key’s expiration setting.