io
io copied to clipboard
Feature request: Support using multiple Caches
Allow multiple Caches(e.g. redis, localStorage, in-memory, etc.) to be used simultaneously. Some kind of CacheStrategy API is probably needed for this to work in order to specify where a value should be saved, which Cache should be checked first for a value, possibly moving values between caches(e.g. redis -> memory when accessed more frequently), etc...
See also: https://www.npmjs.com/package/cache-manager
Cache in Effect is a synchronised structure, not sure it would be possible to have redis & co, also it would require persistence and serialisation which can't be generally done (related to #612 )