WebSphere Application Server dynamic caching provides the following APIs to support programmatic invalidation:
- com.ibm.websphere.cache.invalidateById
- com.ibm.websphere.cache.invalidateByTemplate
- com.ibm.websphere.cache.clear
Refer to the WebSphere Application Server documentation for details on using these APIs.
WebSphere Commerce takes advantage of these APIs, provides a homemade invalidation wrapper, DynaCacheInvalidation command to support a table-driven invalidation API inside WebSphere Commerce. It invalidates cache objects by processing the records in the CACHEIVL table. Refer to Cache Invalidation API (DynaCacheInvalidation) for more details.