This example loads contacts into the cache from a file or stream.
It demonstrates the most effective way of inserting data into a cache using bulk inserts. This will allow for minimizing the number of network roundtrips between the application and the cache.
Java Loader Example
Implementation Class: |
com.tangosol.examples.contacts.LoaderExample in java/src |
.NET Loader Example
Implementation Class: |
LoaderExample in namespace Tangosol.Examples.Contacts in dotnet/src/contacts |
cache.InsertAll(dictBatch);
C++ Loader Example
Implementation Class: |
LoaderExample in namespace coherence::examples in cpp/contacts |
hCache->putAll(hMapBatch);
Example output:
.........Added 10000 entries to cache
|