CreatePolicy Constructor (TimeSpan, Boolean)

ScaleOut Software NamedCache API
Creates a CreatePolicy object with a timeout of the specified duration that is either sliding or absolute. Objects will be subject to reclamation under low-memory circumstances, will eligible for GeoServer push replication, and will not be remotely accessible to a remote store via GeoServer pull replication.

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

public CreatePolicy(
	TimeSpan timeout,
	bool isAbsoluteTimeout
)

Parameters

timeout
Type: SystemTimeSpan
Time until the object expires, with a minimum granularity of one second. Use Zero for an infinite timeout.
isAbsoluteTimeout
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.
Exceptions

ExceptionCondition
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

Reference