Skip to content

@Cachable condition should allow referencing return value [SPR-8871] #13512

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-8871 and commented

Currently the condition attribute of the @Cacheable annotation does not allow referring to the value returned by the method invocation. Thus, it's impossible to define something along "don't cache null values returned from the method invocation".


Affects: 3.1 RC1

Issue Links:

Referenced from: commits 8c2ace3

12 votes, 10 watchers

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions