Click or drag to resize

ConfigurationCommonMethodRefSetExpiryTimeCache Method (Double, Double, CacheReferenceType)

Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. Also allows setting the reference type indicating whether garbage collection may remove entries from cache.

Namespace:  com.espertech.esper.common.client.configuration.common
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
public void SetExpiryTimeCache(
	double maxAgeSeconds,
	double purgeIntervalSeconds,
	CacheReferenceType cacheReferenceType
)

Parameters

maxAgeSeconds
Type: SystemDouble
is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live)
purgeIntervalSeconds
Type: SystemDouble
is the interval at which the runtimepurges stale data from the cache
cacheReferenceType
Type: com.espertech.esper.common.client.utilCacheReferenceType
specifies the reference type to use
See Also