spring-framework / org.springframework.cache.annotation / CachePut / condition

condition

val condition: String

Spring Expression Language (SpEL) expression used for making the cache put operation conditional.

Default is "", meaning the method result is always cached.

The SpEL expression evaluates against a dedicated context that provides the following meta-data: