com.ibm.websphere.cache
Class DynamicCacheAccessor

java.lang.Object
  extended bycom.ibm.websphere.cache.DynamicCacheAccessor

public class DynamicCacheAccessor
extends java.lang.Object

This class provides applications with access to the Dynamic Cache, allowing programmatic inspection and manipulation of WebSphere's cache.


Constructor Summary
DynamicCacheAccessor()
           
 
Method Summary
static Cache getCache()
          Deprecated. Use DistributedMap to store and manage objects in cache. DynamicCacheAccessor#getDistributedMap will return a DistributedMap for accessing base cache.
static DistributedMap getDistributedMap()
          This method will return a DistributedMap reference to the dynamic cache.
static boolean isCachingEnabled()
          This determines if caching is enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicCacheAccessor

public DynamicCacheAccessor()
Method Detail

getCache

public static Cache getCache()
Deprecated. Use DistributedMap to store and manage objects in cache. DynamicCacheAccessor#getDistributedMap will return a DistributedMap for accessing base cache.

This obtains a reference to the dynamic cache.

Returns:
Reference to the cache or null if caching is disabled
See Also:
getDistributedMap(), DistributedMap

isCachingEnabled

public static boolean isCachingEnabled()
This determines if caching is enabled.

Returns:
true if caching is enabled, false if it is disabled.

getDistributedMap

public static DistributedMap getDistributedMap()
This method will return a DistributedMap reference to the dynamic cache.

Returns:
Reference to the DistributedMap or null if caching is disabled.
Since:
v6.0