-
Notifications
You must be signed in to change notification settings - Fork 530
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
Make cache
support methods
#1145
Comments
I noticed from the helpful test case in #1129—and the relevant In other words, there's probably not a general way to warn people that they could be doing something undesirable for caching. Because of that, we might want to make the caching utilities private and leave it up to the user to determine how caching should work, since all we can really guarantee is that underlying objects are serializable in a way that can work for caching. |
I did some research here and it seems like the reason the test case in the PR is failing is because the function being pickled for the cache has a different closure environment. The fact that
since Unfortunately, I can't identify why the relevant If a warning is still desirable, you might want to trigger it by checking |
Currently, the
cache
function doesn't truly support methods (see #1129). Let's considercache
interface private/internal,The text was updated successfully, but these errors were encountered: