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

WebExtensions: browser.storage wrapper with expiration #113

Closed
fregante opened this issue Mar 16, 2019 · 1 comment
Closed

WebExtensions: browser.storage wrapper with expiration #113

fregante opened this issue Mar 16, 2019 · 1 comment

Comments

@fregante
Copy link

fregante commented Mar 16, 2019

In Refined GitHub we'd like to cache some values and currently (ab-)use local cookies to do so, but the space is so little it's barely worth caching anything more than small data: refined-github/refined-github#1529

Another example where it could be useful: npmhub/npmhub#81

LRU or expiration date would be good, as long as it doesn't need to retrieve the whole cache object at once + edit it + save it. It would be pretty inefficient on large caches.

How would you deal with this?

Related: https://github.com/SamVerschueren/map-age-cleaner

@fregante
Copy link
Author

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

1 participant