-
Notifications
You must be signed in to change notification settings - Fork 160
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
Added helper functions to support fine grained control over the cache #36
Conversation
2 similar comments
I see what you mean, but for now I don't want to add to the interface, especially not the decorators. I'd also prefer if users could implement something like this themselves, since the |
Thinking a little more about this, passing your own |
Having a My idea started from the imposibility of accessing the original method, which becomes a function, outside the
|
For the original method, there's alreadythe |
For 2.7 as well? |
Good point. Didn't know this was introduced in 3.2. So another reason for people to move to Python 3, good ;-) |
Thanks for your input; I think this has been solved (somewhat differently) with cachetools 1.1 and the new |
Hi,
I found usefull the following two cases for method calls, but I think they might be useful for function calls as well:
Here is an example of how I see it being used:
Tell me what you think, and I will update the function decorator as well, if you decide to merge my commit.
Cheers,
Vlad