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

Custom cache key generator? #464

Closed
tietoevry-johan opened this issue Mar 13, 2023 · 2 comments
Closed

Custom cache key generator? #464

tietoevry-johan opened this issue Mar 13, 2023 · 2 comments
Labels

Comments

@tietoevry-johan
Copy link

Description

Hi, is there any way override the cache key generator?

It's a similar use case to #445, but I would just like to inject my tenant context in to the cache key generator and add the tenant ID as a prefix.

Specifications

  • Provider : InMemory (version 1.9.0)
@catcherwong
Copy link
Member

@tietoevry-johan Thanks for your interest in this project.

In EasyCaching, only interceptor contains cache key generator IEasyCachingKeyGenerator.

When you call method Set(Async) or Get(Async), the cache key was defined by yourself.

@tietoevry-johan
Copy link
Author

@catcherwong alright, thanks for the update and a nice library :)

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

No branches or pull requests

2 participants