Skip to content
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

[Feature Request] Persisting cache data to disk #32

Open
vzool opened this issue Jun 16, 2019 · 3 comments
Open

[Feature Request] Persisting cache data to disk #32

vzool opened this issue Jun 16, 2019 · 3 comments

Comments

@vzool
Copy link

vzool commented Jun 16, 2019

Hi, I like this library because it is simple to use. But, I couldn't find a way to persisting cache to disk in order to retrieve cache after accidental application shutdown. Do you like to add this feature in the future?

Thanks

@vzool vzool changed the title [Feature Request] Persisting cache and retreive data to disk [Feature Request] Persisting cache data to disk Jun 16, 2019
@chengyayu
Copy link

Hi, I like this library because it is simple to use. But, I couldn't find a way to persisting cache to disk in order to retrieve cache after accidental application shutdown. Do you like to add this feature in the future?

Thanks

why don't you use Redis? I think this package is best used in the business layer cache.

@vzool
Copy link
Author

vzool commented Jun 17, 2019

Yes, I think so. But, I prefer a simple solution and I just did it by swap this library with LevelDB as a cache.
Thanks for your response ^_^

@muesli
Copy link
Owner

muesli commented Jun 17, 2019

I tend to agree: I think this is out of cache2go's scope. That said it would probably be fairly simple to (un)marshall the data, and I'm not opposed to a patch - should someone fancy tackling it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants