Local cache
Use the local cache that is supplied with IBM® App Connect Enterprise to store data that you want to reuse.
Using the local cache
The local cache can be configured for use in IBM App Connect Enterprise. This capability is available in version 12.0.4.0 onwards.
When using the local cache, a Java™ HashMap is used as the underlying storage, which is scoped to a single integration server. Each integration server has its own in-memory copy of the cache, and updates that are made in one integration server will not be reflected in other integration servers. Cache transactions are also not supported when using the local cache.
The local cache is API compatible with the embedded global cache. This means that message flows continue to work as designed when switching between the local and the embedded global cache.
To configure an integration server to use the local cache instead of the embedded global cache, set the defaultCacheType property in the server.conf.yaml file as follows:
GlobalCache:
defaultCacheType: 'local'
To support use cases where a global cache can be used alongside the local cache, the MbLocalMap class is provided to implement the same interface as MbGlobalMap.