Skip to content

In-memory backed RedisStore #20

Closed
Closed
@bmorton

Description

@bmorton

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:

  1. Add this support to the RedisStore so a config option can be passed to allow local caching
  2. In my project, create a new LocalCachedRedisStore that takes a RedisStore and an in-memory store and does both
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions