Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Feature request: Support using multiple Caches #588

Open
jessekelly881 opened this issue Aug 12, 2023 · 1 comment
Open

Feature request: Support using multiple Caches #588

jessekelly881 opened this issue Aug 12, 2023 · 1 comment

Comments

@jessekelly881
Copy link
Contributor

jessekelly881 commented Aug 12, 2023

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

@jessekelly881 jessekelly881 changed the title Feature request: Cache.orElse Feature request: Support using multiple Caches Aug 13, 2023
@mikearnaldi
Copy link
Member

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 )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants