Skip to content

@CacheRefresh to request a refresh of a stale object in the cache [SPR-9592] #14226

@spring-projects-issues

Description

@spring-projects-issues

Adib Saikali opened SPR-9592 and commented

It would be nice to have an @RefreshCache annotation this would indicate to the cache abstraction that it should not evict the element in the cache but should replace it with the returned value of a method marked with @RefreshCache annotation.

Ideally the @RefreshCache should have an option to indicate that calls to @Cacheable methods should block unit the refresh is complete, or should see stale data until refresh is complete.


Affects: 3.1 GA

Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions