You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: