Add expiration to memoize #180

pateras opened this Issue Sep 25, 2012 · 1 comment

3 participants


Memoize is great, and very useful, but it would be more so if I could specify an expiration time for it, such that items that have been cached for longer than that time period get pulled again.


You can write a custom hasher that depends on time. Not a great solution though because any information still exists in memory.

And there are libraries that've been designed specifically for that: . Maybe it's better to use them instead.

@caolan caolan closed this Mar 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment