| |
|
| java.lang.Object org.apache.turbine.services.cache.TurbineGlobalCache
TurbineGlobalCache | abstract public class TurbineGlobalCache (Code) | | This is a Facade class for GlobalCacheService.
This class provides static methods that call related methods of the
implementation of the GlobalCacheService used by the System, according to
the settings in TurbineResources.
author: Sean Legassick version: $Id: TurbineGlobalCache.java 534527 2007-05-02 16:10:59Z tv $ |
addObject | public static void addObject(String id, CachedObject o)(Code) | | Adds an object to the cache.
Parameters: id - The String id for the object. Parameters: o - The object to add to the cache. |
getCacheSize | public static int getCacheSize() throws IOException(Code) | | Returns the current size of the cache.
int representing current cache size in number of bytes |
getNumberOfObjects | public static int getNumberOfObjects()(Code) | | Returns the number of objects in the cache.
int The current number of objects in the cache. |
getService | protected static GlobalCacheService getService()(Code) | | Utility method for accessing the service
implementation
a GlobalCacheService implementation instance |
removeObject | public static void removeObject(String id)(Code) | | Removes an object from the cache.
Parameters: id - The String id for the object. |
|
|
|