-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Memoizing Decorator Support #9
Comments
Needs "typed=False" parameter. See: https://bugs.python.org/issue13227 |
@grantjenks , does decorator have to store cached data on disk? |
Yes, I would expect it to use |
Deployed at 2.8.2 The new feature is at FanoutCache.memoize and DjangoCache.memoize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As described in DiskCache Development it would be great to have an lru_cache-like decorator to cache function calls.
I contacted Yuval Greenfield, the author of filecache and he said the missing decorator feature was what blocked him from using the module. His decorator accepts one argument, seconds before expiry.
I prototyped something simple in Issue #8. It should be relatively easy to combine it with the source from Python 3's functools.lru_cache
The text was updated successfully, but these errors were encountered: