You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace our cookie-based cache with self-clearing browser.storage #2100
Cache where? Our cache is rather small and if we're gonna store them in a regular browser.storage.local we also need a cleaning mechanism so it doesn't stay there forever.
I think a simple LRU implementation on top of browser.storage.local with lazy saving/cleaning should suffice.
Activity
fregante commentedon May 30, 2019
The current cache implementation is https://github.com/sindresorhus/refined-github/blob/master/source/libs/cache.ts
Ideally, the cache would be implemented as a
Mapwith async getters and setters, likeThe
getSetmethod can be dropped for now