@Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented @GroovyASTTransformationClass("org.grails.datastore.gorm.transform.OrderedGormTransformation") @org.grails.datastore.gorm.transform.GormASTTransformationClass("org.grails.cache.compiler.CachePutTransformation") public @interface CachePut
Indicates that a method (or all methods on a class) trigger(s) aCache#put(Object, Object) operation. As opposed to Cacheable annotation, this annotation does not cause the target method to be skipped - rather it always causes the method to be invoked and its result to be placed into the cache.
A closure for computing the key dynamically.
Default is null, meaning all method parameters are considered as a key.
Name of the caches in which the update takes place.
May be used to determine the target cache (or caches), matching the qualifier value.