Package freemarker.cache
Interface CacheStorage
-
- All Known Subinterfaces:
CacheStorageWithGetSize,ConcurrentCacheStorage
- All Known Implementing Classes:
MruCacheStorage,NullCacheStorage,SoftCacheStorage,StrongCacheStorage
public interface CacheStorageCache storage abstracts away the storage aspects of a cache - associating an object with a key, retrieval and removal via the key. It is actually a small subset of theMapinterface. The implementations can be coded in a non-threadsafe manner as the natural user of the cache storage,TemplateCachedoes the necessary synchronization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()java.lang.Objectget(java.lang.Object key)voidput(java.lang.Object key, java.lang.Object value)voidremove(java.lang.Object key)
-