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

allow to store value in file and not memory #47

Open
vtolstov opened this issue Dec 16, 2017 · 1 comment
Open

allow to store value in file and not memory #47

vtolstov opened this issue Dec 16, 2017 · 1 comment

Comments

@vtolstov
Copy link

I want to use this package to ARC cache for some massive read/write app but value in my case is big > 4M does it possible to store values in files and keys in memory?

@erwanor
Copy link
Contributor

erwanor commented Dec 24, 2017

That feature request won't make it to master. It's not really what this library is trying to achieve (being an in-memory, extensible cache library).

With that said, you could consider using an ARC cache to manage your keys and use the underlying filesystem if that's what you want to do. GCache lets you define evict hooks such that removing a file when the corresponding key gets kicked-out should be easy. There are some inefficiencies involved in this hack/solution but I leave it to you to figure if those are tolerable.

If you provide more information I might be able to help you. Good luck!

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

2 participants