@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.CacheableTransformation") public @interface Cacheable
Indicates that a method (or all the methods on a class) can be cached.
The method arguments and signature are used for computing the key while the returned instance is used as the cache value.
A closure used for conditioning the method caching.
Default is null, meaning the method is always cached.
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.