Table of Contents

Enum ClientCacheUsage

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

Enumeration used to control client cache usage during read operations.

public enum ClientCacheUsage : byte

Fields

OverrideCoherencyInterval = 2

Allows client cache usage and overrides the cache-wide coherency interval policy for an individual read call. The read call will use the coherency interval specified by CoherencyInterval. This allows an object to be returned directly from the in-process client cache without performing a round-trip to the ScaleOut service.

OverrideCoherencyIntervalDeepCopy = 3

Disables client cache usage but allows a deep copy to be returned immediately if it is in the network cache and the age of the locally cached bytes is within the coherency interval specified by CoherencyInterval. This allows a deep copy of an object to be returned directly from the in-process network cache without performing a round-trip to the ScaleOut service.

ReturnCachedReference = 0

The client library is allowed to return a reference to a cached instance of the object. Do not use if the reference will be modified without persisting that changes back to the ScaleOut service. The cache's coherency interval policy will be used.

ReturnDeepCopy = 1

The client library will only return a new, deep copy of the requested object instead of returning a shared reference to an instance in the in-process client cache.