NCache 4.4 - Online Documentation

Read-Through Caching

 
Read-through caching facilitates in case client application wants to acquire an item from cache, which is not currently present in cache store, instead it is present in master data source only. In such a case if read-through is enabled, item will be transparently fetched from data source and stored in cache to fulfill future requests.
 
For read-through, IReadThruProvider interface needs to be implemented NCache framework uses this custom read-through provider to communicate with backend data source. In this case, custom logic needs to be implemented to load data from configured data source. NCache will call your provider to load data from data source behind Get call in case of cache miss.
 
 
NCache provides a performance counter for read-through operations per sec.
 
 
In clustered caches, where multiple servers are involved, read-through provider will be active (initialized) on all cache server nodes but read through operation will be performed by the node which receive Get operation according to topology.
 
 
See Also