Package com.ibm.websphere.cache
Class DynamicCacheAccessor
java.lang.Object
com.ibm.websphere.cache.DynamicCacheAccessor
This class provides applications with access to the Dynamic Cache,
allowing programmatic inspection and manipulation of WebSphere's
cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cache
getCache()
Deprecated.Use DistributedMap to store and manage objects in cache.static DistributedMap
Deprecated.baseCache is used for servlet caching.static boolean
This determines if Dynamic caching (either servlet or object cache) is enabled.static boolean
This determines if Dynamic object caching is enabled.static boolean
This determines if Dynamic servlet caching is enabled.
-
Constructor Details
-
DynamicCacheAccessor
public DynamicCacheAccessor()
-
-
Method Details
-
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:
-
isCachingEnabled
public static boolean isCachingEnabled()This determines if Dynamic caching (either servlet or object cache) is enabled.- Returns:
- true if caching is enabled, false if it is disabled.
-
isServletCachingEnabled
public static boolean isServletCachingEnabled()This determines if Dynamic servlet caching is enabled.- Returns:
- true if caching is enabled, false if it is disabled.
-
isObjectCachingEnabled
public static boolean isObjectCachingEnabled()This determines if Dynamic object caching is enabled.- Returns:
- true if caching is enabled, false if it is disabled.
-
getDistributedMap
Deprecated.baseCache is used for servlet caching. It should not be used as a DistributedMap.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
-