-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to serialize/unserialize the cache in/from a file? #11
Comments
I'm also hoping for some sort of pickling feature in the future! |
After careful consideration, I'm sorry that a serialization/deserialization feature can not yet be implemented in this library. Although it would be a really nice and useful feature, it seems that the cons still outweigh the pros, and some challenges must be addressed.
For example, given a @cached
def foo(x):
return x One day, we serialize the cache by @cached
def foo(x):
return x + 1 If we deserialize the cache by If anyone:
Please comment or submit PRs. Thank you! |
@lonelyenvoy Have you looked at how Joblib also does a better job of dealing with the input args. It takes a sensibly filtered set of the arguments, assembles them into a list, |
Sorry, how do you pickle the cache? I get that you might not want to have serde code in the library, but folks should be able to do that themselves via exposed apis to get and set the cache. |
Having the cache info is very useful, but I'm missing an entry to the cache itself so I could serialize it and reuse it later. Is there any way to do that already?
The text was updated successfully, but these errors were encountered: