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

Configure cache key generator via config #505

Open
rlconst opened this issue Sep 6, 2022 · 0 comments
Open

Configure cache key generator via config #505

rlconst opened this issue Sep 6, 2022 · 0 comments
Labels
type: improvement A minor improvement to an existing feature

Comments

@rlconst
Copy link

rlconst commented Sep 6, 2022

Feature description

Currently Key Generator resolved via @CacheConfig and if not configured, fall back to default cache generation.
This way isn't flexible enough especially in case where you define API for declarative http client and don't want to leak details into configuration and/or allow client choose own ways of caching.

Key generator class should be configured via standard config sources, it'll also allow dynamic and runtime specific configuration.

Relevant part of code is https://github.com/micronaut-projects/micronaut-cache/blob/master/cache-core/src/main/java/io/micronaut/cache/interceptor/CacheInterceptor.java#L966

@alvarosanchez alvarosanchez changed the title Configure cache key generato via config Configure cache key generator via config Sep 6, 2022
@alvarosanchez alvarosanchez added the type: improvement A minor improvement to an existing feature label Sep 6, 2022
@sdelamo sdelamo removed this from 4.3.0 Release Jan 26, 2024
@sdelamo sdelamo removed this from 4.4.0 Release Apr 16, 2024
@timyates timyates removed their assignment May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: No status
Development

No branches or pull requests

3 participants