Gets/Sets Enumeration to specify how the Client cache is synchronized with the cluster caches through events.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public enum ClientCacheSyncMode |
Visual Basic |
---|
Public Enumeration ClientCacheSyncMode |
Visual C++ |
---|
public enum class ClientCacheSyncMode |
Members
Member name | Value | Description | |
---|---|---|---|
Pessimistic | 0 | In "Pessimistic" mode of synchronization, client cache always checks for the "version" of the cached item before returning it to the application. | |
Optimistic | 1 | It is possible that client caches are not synchronized with clustered cache for a small period of time. If during this time users gets an item from the client cache, he may get an old version. This is the "Optimistic" mode of synchronization |