LocalCacheLoadAll Method (ICollection) |
Namespace: Tangosol.Net.Cache
public virtual void LoadAll( ICollection keys )
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); } } }