IDMappingExtCache Utility
IDMappingExtCache utility
Use this utility to access the cache.
Example usage:
IDMappingExtCache.put("mydata", "store this data", 120);
if (IDMappingExtCache.exists("mydata")) {
...
}
Return Type | Method | Description | Arguments |
---|---|---|---|
Boolean | exists(lookupKey) | Return true if the lookupKey exists in the cache, otherwise returns false. | string |
string | get(lookupKey) | Return the entry that is associated with the lookupKey . | string |
string | getAndRemove(lookupKey) | Return the entry that is associated with the lookupKey and remove it from the cache. | string |
Boolean | put(lookupKey, entry, timeToLive) | Associate the entry with the lookupKey in the cache. The operation returns true when successful. Time to live is optional. The default is 60 seconds. However, it depends on whether the underlying implementation supports it. | string, string, integer |
IDMappingExtCache
is fully compatible with com.tivoli.am.fim.trustserver.sts.utilities.IDMappingExtCache
interface.
Updated about 2 years ago