Package org.grails.web.mapping
Class UrlCreatorCache
- java.lang.Object
-
- org.grails.web.mapping.UrlCreatorCache
-
public class UrlCreatorCache extends java.lang.ObjectImplements caching layer for UrlCreator The "weight" of the cache is the estimated number of characters all cache entries will consume in memory. The estimate is not accurate. It's just used as a hard limit for limiting the cache size. You can tune the maximum weight of the cache by setting "grails.urlcreator.cache.maxsize" in Config.groovy. The default value is 160000 .- Since:
- 1.3.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUrlCreatorCache.ReverseMappingKey
-
Constructor Summary
Constructors Constructor Description UrlCreatorCache(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()UrlCreatorCache.ReverseMappingKeycreateKey(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.util.Map params)UrlCreatorlookup(UrlCreatorCache.ReverseMappingKey key)UrlCreatorputAndDecorate(UrlCreatorCache.ReverseMappingKey key, UrlCreator delegate)
-
-
-
Method Detail
-
clear
public void clear()
-
createKey
public UrlCreatorCache.ReverseMappingKey createKey(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.util.Map params)
-
lookup
public UrlCreator lookup(UrlCreatorCache.ReverseMappingKey key)
-
putAndDecorate
public UrlCreator putAndDecorate(UrlCreatorCache.ReverseMappingKey key, UrlCreator delegate)
-
-