CreatePolicy Constructor (TimeSpan, Boolean, ObjectPreemptionPriority, Object, Boolean)

ScaleOut Software NamedCache API
Creates a CreatePolicy object with the specified policies for timeout, preemption priority, dependencies, and GeoServer push replication. Objects will not be remotely accessible to a remote store via GeoServer pull replication.

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

public CreatePolicy(
	TimeSpan timeout,
	bool isAbsoluteTimeout,
	ObjectPreemptionPriority preemptionPriority,
	Object[] dependencies,
	bool allowReplication


Type: SystemTimeSpan
Time until the object expires, with a minimum granularity of one second. Use Zero for an infinite timeout.
Type: SystemBoolean
Indicates whether the timeout is an absolute expiration value or is a sliding expiration value that gets reset every time the object is accessed.
Type: Soss.ClientObjectPreemptionPriority
Indicates the priority of keeping the object in the cache during low-memory situations. Removable objects are removed from memory when memory runs low based on a least recently used algorithm.
Type: SystemObject
Keys to objects on which the object being added depends. Items in the array must be of type string, byte[], Guid, CachedObjectId, or StateServerKey. An object can be dependent upon up to 2 parent objects. Keys to parents that do not exist in the store will be ignored.
Type: SystemBoolean
Indicates whether the object to be added to the cache will be subject to GeoServer cross-store "push" replication.

ArgumentOutOfRangeException Thrown if timeout is set to a value less than 0 seconds or greater than 4,194,303 seconds (69,905 minutes).
See Also