kiwi icon indicating copy to clipboard operation
kiwi copied to clipboard

Expiring Data

Open crisward opened this issue 9 years ago • 1 comments

Not sure if you feel this fits within the scope of this module. But I'd quite like to wrap my database queries in a cache to prevent hitting the db too often. What would be really cool is if I could use this library but set expiry times on data ie

store.set("key", "value",1000) # 1000ms optional, otherwise forever

If this isn't inline with your aims, let me know as I may create a module to wrap yours to add this functionality to those who want it.

Thanks.

crisward avatar Aug 16 '16 13:08 crisward

Hey) Sorry for the delay. I guess it might be useful. I don't mind such thing, if it can be somehow modular.

greyblake avatar Aug 21 '16 18:08 greyblake