Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to customize distributed cache keys #69

Open
mscrivo opened this issue Mar 5, 2019 · 5 comments
Open

Ability to customize distributed cache keys #69

mscrivo opened this issue Mar 5, 2019 · 5 comments

Comments

@mscrivo
Copy link

mscrivo commented Mar 5, 2019

Is it possible to customize the distributed cache keys? I tried setting this up with Redis, and it seems to put everything in the root with a hashed value as the key. Ideally, I'd like to specify a prefix like ServiceName:Cache:Hash

@STRATZ-Ken
Copy link

Seconded.

@corcus
Copy link

corcus commented Mar 3, 2020

I am interested in that too.

@raschle
Copy link

raschle commented Sep 3, 2021

+1

@raschle
Copy link

raschle commented Sep 3, 2021

I solved it by creating an implementation of the ProcessingStrategy copied from the RedisProcessingStrategy. For simplicity the prefix is hard coded but can easily be read from any configuration available.

https://gist.github.com/raschle/ff11042b966ed70e610f4e8f3b4063fd

@jacobmstein
Copy link

Check out this PR which modifies the existing RedisProcessingStrategy to accept configuration options. Maybe I should make this not only possible with Redis but all cache types?

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

No branches or pull requests

6 participants