Table of Contents

Class LruMemoryEvictionCache<TValue>

Namespace
Scaleout.Client.InProc
Assembly
Scaleout.Client.dll

A client cache implementation that evicts the least recently used entries when a memory limit is exceeded.

public class LruMemoryEvictionCache<TValue> : ClientCache<TValue>

Type Parameters

TValue

Type of object stored in the cache.

Inheritance
ClientCache<TValue>
LruMemoryEvictionCache<TValue>
Inherited Members

Constructors

LruMemoryEvictionCache(int)

Constructor

Properties

EstimatedBytesUsed

Gets the total estimated memory usage of the objects in this client cache.

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<TValue>)

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.