NamedCacheUseLocking Property

ScaleOut Software NamedCache API
Determines the locking behavior when using the NamedCache's indexer to get or set cached items. Default is false.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version:

public bool UseLocking { get; set; }

Property Value

Type: Boolean

The UseLocking property causes the NamedCache's ItemCachedObjectId accessor to lock the cached object in the SOSS server in order to prevent other clients from performing locked operations. Performing a get operation will cause the client to acquire a lock, and performing a set operation will cause the lock to be released.

This property also affects the Get(String) method. It does not affect the locking behavior of the Retrieve(String, Boolean), Update(String, Object, Boolean), or Insert(String, Object, CreatePolicy, Boolean, Boolean) methods, which allow for fine-grained locking control.

If GeoServer pull replication is being used, performing a locking read operation on an object will cause the master copy of that object to migrate to the local store.

See Also