@Slf4j class CacheTagLib extends java.lang.Object
| Type | Name and description |
|---|---|
java.lang.Object |
blockRenders a block of markup and caches the result so the next time the same block is rendered, it does not need to be evaluated again. |
GrailsCacheManager |
grailsCacheManager |
GroovyPagesTemplateRenderer |
groovyPagesTemplateRenderer |
static java.lang.Object |
namespace |
java.lang.Object |
renderRenders a GSP template and caches the result so the next time the same template is rendered, it does not need to be evaluated again. |
| Constructor and description |
|---|
CacheTagLib() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected java.lang.String |
calculateFullKey(java.lang.String templateName, java.lang.String contextPath, java.lang.String pluginName) |
|
protected static java.lang.Object |
cloneIfNecessary(java.lang.Object content) |
|
protected java.lang.Boolean |
honorTTL(java.lang.String key, java.lang.Long ttl)updates the ttl and returns whether the content is expired |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Renders a block of markup and caches the result so the next time the same block is rendered, it does not need to be evaluated again.
Renders a GSP template and caches the result so the next time the same template is rendered, it does not need to be evaluated again.
updates the ttl and returns whether the content is expired
ttl - in seconds comes form the view