Class PartitionedClientCache<T>
A client cache implementation composed of multiple client cache instances that act as cache partitions. Intended to reduce lock contention in the client cache under high load.
public class PartitionedClientCache<T> : ClientCache<T>
Type Parameters
T
Type of value.
- Inheritance
-
ClientCache<T>PartitionedClientCache<T>
- Inherited Members
Constructors
- PartitionedClientCache(IList<ClientCache<T>>)
Constructs a client cache using the supplied partitions.
Methods
- Get(ref ObjectKey)
Returns the CacheEntry<TValue> associated with the provided key, or
null
if not found.
- Remove(ref ObjectKey)
Removes the value with the specified key from the client cache.
- Set(ref ObjectKey, CacheEntry<T>)
Creates/Updates the client cache with latest version of an object.
- Touch(ref ObjectKey)
Updates the age of the client cache entry to the current time. Called after a round trip to the service confirms that an entry is up-to-date.