Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | Cache Folder | Summary of Elements in this Folder | pub.cache:putAll
 
pub.cache:putAll
WmPublic. Populates a collection of elements in the cache with the specified key-value pairs.
Input Parameters
cacheManagerName
String Name of the cache manager that manages the cache. This parameter is case sensitive.
cacheName
String Name of the cache in which to put the elements. This parameter is case sensitive.
elements
Document List An IData[] containing the key-value pairs to put in the cache.
Key
Description
key
Object Key of the cached element.
value
Object Value of the cached element.
Output Parameters
None.
Usage Notes
If your cache is a distributed cache or is configured to use disk store or BigMemory, key and value must be Java Serializable objects.
The key and value input parameters cannot be null. The service might end with a NullPointerException if any key or value parameters are null.
If the element with the specified key does not already exist in the cache, the pub.cache:putAll service puts the element in the cache. If the element with the specified key already exists in the cache, pub.cache:putAll updates the element with the specified value.
If you run pub.cache:putAll on a disabled cache, the cache discards the call.
Integration Server issues a ServiceException in the following cases:
*If you do not specify all required input parameters.
*If Integration Server cannot find the specified cache manager or cache.
*If a cache operation fails.