Groovy Documentation

grails.plugin.cache
[Groovy] Class CacheTagLib

java.lang.Object
  grails.plugin.cache.CacheTagLib

class CacheTagLib

Property Summary
java.lang.Object block

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.

java.lang.Object grailsCacheManager

java.lang.Object groovyPagesTemplateRenderer

static java.lang.Object namespace

java.lang.Object render

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.

 
Constructor Summary
CacheTagLib()

 
Method Summary
protected java.lang.String calculateFullKey(java.lang.String templateName, java.lang.String contextPath, java.lang.String pluginName)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

block

java.lang.Object block
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.
attr:
key An optional cache key allowing the same block to be cached with different content


grailsCacheManager

java.lang.Object grailsCacheManager


groovyPagesTemplateRenderer

java.lang.Object groovyPagesTemplateRenderer


namespace

static java.lang.Object namespace


render

java.lang.Object render
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.
attr:
template REQUIRED The name of the template to apply
attr:
key An optional cache key allowing the same template to be cached with different content
attr:
contextPath the context path to use (relative to the application context path). Defaults to "" or path to the plugin for a plugin view or template.
attr:
bean The bean to apply the template against
attr:
model The model to apply the template against as a java.util.Map
attr:
collection A collection of model objects to apply the template to
attr:
var The variable name of the bean to be referenced in the template
attr:
plugin The plugin to look for the template in


 
Constructor Detail

CacheTagLib

CacheTagLib()


 
Method Detail

calculateFullKey

protected java.lang.String calculateFullKey(java.lang.String templateName, java.lang.String contextPath, java.lang.String pluginName)


 

Groovy Documentation