| java.lang.Object org.mmbase.cache.CacheManager
CacheManager | public class CacheManager (Code) | | Cache manager manages the static methods of
Cache . If you prefer you can call them on this in stead.
since: MMBase-1.8 version: $Id: CacheManager.java,v 1.24 2008/02/23 14:03:23 andre Exp $ |
Inner Class :public static class Bean | |
getBean | public static Bean getBean(String name)(Code) | | Returns a cache wrapped in a 'Bean', so it is not a Map any more. This makes it easier
accesible by tools which want that (like EL).
since: MMBase-1.9 |
getCache | public static Cache getCache(String name)(Code) | | Returns the Cache with a certain name. To be used in combination with getCaches(). If you
need a certain cache, you can just as well call the non-static 'getCache' which is normally
in cache singletons.
See Also: CacheManager.getCaches |
getCaches | public static Set<String> getCaches()(Code) | | Returns the names of all caches.
A Set containing the names of all caches. |
getTotalByteSize | public static int getTotalByteSize()(Code) | | |
putCache | public static Cache<K, V> putCache(Cache<K, V> cache)(Code) | | Puts a cache in the caches repository. This function will be
called in the static of childs, therefore it is protected.
Parameters: cache - A cache. The previous cache of the same type (stored under the same name) |
shutdown | public static void shutdown()(Code) | | Clears and dereferences all caches. To be used on shutdown of MMBase.
since: MMBase-1.8.1 |
|
|