Closed
Description
It seems like the cache entries that are stored to Redis can be long lived and don't need to be invalidated (the hash will always resolve to the same query), so we are looking at using the Redis implementation but caching Redis lookups locally to avoid the network call when possible. It's essentially a combination of the in-memory adapter with the redis adapter.
I can think of three options for implementing this:
- Add this support to the
RedisStore
so a config option can be passed to allow local caching - In my project, create a new
LocalCachedRedisStore
that takes a RedisStore and an in-memory store and does both - Same as 2, but included with this repo instead of directly in my project
Do you have a preference here? Should I keep this to my project alone or would you accept a PR for something like this?
Metadata
Metadata
Assignees
Labels
No labels