I would use a database, like redis or postgres. Redis is a good fit for this, 
since it supports data lifetime out of the box. 
<https://redis.io/commands/expire>

Reply via email to