pybreaker icon indicating copy to clipboard operation
pybreaker copied to clipboard

TTL on Redis

Open Kludex opened this issue 3 years ago • 1 comments

Currently, there's no expire time on the keys created on Redis. I'm concerned about orphan keys during the lifetime of the application. A full clean can be performed from time to time... But I guess we can also enable a TTL parameter on those.

To be specific, image I create a namespace "potato", then I'll have the key "potato:pybreaker:state". If I decide to change the namespace, I'll have the previous key being orphan.

Kludex avatar Aug 05 '22 15:08 Kludex

I imagine those keys would consume very little space in a Redis server, but having a way to set a TTL wouldn't hurt.

danielfm avatar Aug 12 '22 01:08 danielfm