Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

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: 3.7.1.23 (3.7.1.23)

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);
                    }
                }
            }
            

See Also