Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
12c (12.2.1.4.0)
E90869-02
Indicates to the cache that the specified keys should be loaded
into the cache, if they are not already in the cache.
Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
Syntax
| C# |
|---|
public virtual void LoadAll( ICollection keys ) |
Parameters
- keys
- Type: System.Collections..::..ICollection
A collection of keys to request to be loaded.
Remarks
This provides a means to "pre-load" entries into the cache using the cache's loader.
The result of this method is defined to be semantically the same as the following implementation:
ICacheLoader loader = CacheLoader;
if (loader != null && keys.Count != 0)
{
ArrayList requestList = new ArrayList(keys);
CollectionUtils.RemoveAll(requestList, PeekAll(keys).Keys);
if (requestList.Count != 0)
{
IDictionary dictionary = loader.LoadAll(requestList);
if (dictionary.Count != 0)
{
CollectionUtils.AddAll(dictionary);
}
}
}