public class GrailsConcurrentMapCache extends ConcurrentMapCache implements GrailsCache
Extends the default implementation to return GrailsValueWrapper instances instead of SimpleValueWrapper. This isn't useful for this implementation but is for others where the native wrapper has more useful information that would otherwise be lost (for example the TTL in the Ehcache Element class). This implementation exists so that all caches consistently return a GrailsValueWrapper.
Constructor and description |
---|
GrailsConcurrentMapCache
(java.lang.String name) |
GrailsConcurrentMapCache
(java.lang.String name, boolean allowNullValues) |
GrailsConcurrentMapCache
(java.lang.String name, java.util.concurrent.ConcurrentMap<java.lang.Object, java.lang.Object> store, boolean allowNullValues) |
Type Params | Return Type | Name and description |
---|---|---|
|
public GrailsValueWrapper |
get(java.lang.Object key) |
|
public java.util.Collection<java.lang.Object> |
getAllKeys() |