(Quick Reference)

2 Usage - Reference Documentation

Authors: Burt Beckwith

Version: 1.1.0

Table of Contents

2 Usage

Although this plugin uses a different backing store than the core plugin, its usage and configuration are the same. You annotate service methods, controller action methods, and taglib closures with the three caching annotations, and configure caches in Config.groovy and/or *CacheConfig.groovy artifacts in grails-app/conf. See the core plugin docs for general usage information.

2.1 Cache DSL

Like the core plugin, there are no cache configuration options beyond the cache name. The DSL parser is lenient though, so you can reuse more complex configurations (for example from the richer Ehcache plugin's DSL implementation) and options that aren't valid will be ignored.

Since there is no way to configure "time to live" with this plugin, all cached items have no timeout and remain cached until either the JVM restarts (since the backing store is in-memory) or the cache is partially or fully cleared (by calling a method or action annotated with @CacheEvict or programmatically).