callback when key expires in Redis
prk2331 opened this issue · 1 comments
prk2331 commented
Team,
Could you please explain to me how we can get a callback when the key expires in Redis? After that, I'd like to run my Revenue Calculation logic.
Im using django redis cache in django http sessions
I have an API to calculate the revenue logic, which runs on logout, and I want to automate this as well if the redis key expires.
Thanks
WisdomPill commented
hello @prk2331,
same issue was opened a long time ago and it is #363.
We're not interested in developing such a thing, you should use celery
with a delayed task, it is the easier way.
If you really want to shoot yourself in the foot you could try using pubsub
and keyspace notifications