Annotation Type CachePut
Always runs the method, then keeps what it returned under its key, so a later
Cacheable call of the same key is answered with it -- Spring's @CachePut.
Keys, names and lifetimes are as Cacheable describes. A null result removes
the entry, so the cache never answers with a value the method no longer gives.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]The same asvalue(), as Spring spells it.The key expression; seeCacheable.Accepted when it is#result == null; seeCacheable.unless().String[]The cache's name; the first is used when several are given.
-
Element Details
-
value
-
cacheNames
-
key
-
unless
-