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 }}
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
Everything is in-memory for now. However, caching is done with simple keys. And once a cached component has been compressed, the values stored are simple strings. This being the case, there's no reason why Redis couldn't be used as a backend.
Several benefits come to mind:
TTLs for cache entries become simple to manage
you don't risk out-of-memory errors in your Node process for folks caching anything and everything
this scales across nodes
you could also prime your cache using known keys
The text was updated successfully, but these errors were encountered:
Agreed. I've expanded my thoughts in the description for why Redis provides such great synergy. But you're right - any caching service should be usable. Ideally, the abstraction is agnostic to the storage, i.e. you're only responsible for providing get and set functions that return a Promise.
Everything is in-memory for now. However, caching is done with simple keys. And once a cached component has been compressed, the values stored are simple strings. This being the case, there's no reason why Redis couldn't be used as a backend.
Several benefits come to mind:
The text was updated successfully, but these errors were encountered: