micronaut-projects / micronaut-projects/micronaut-cache

Configure cache key generator via config

Open
#505 0 comments 0 reactions 1 assignee Claimed by @sdelamo View on GitHub
status: in progress type: improvement
Dominant language
PLSQL
Stars
32
Forks
36
Avg merge
2h 2m
Merged PRs (30d)
5

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.