 | ConfigurationCommonMethodRefSetExpiryTimeCache Method (Double, Double) |
Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds.
Specifies the cache reference type to be weak references. Weak reference cache entries become
eligible for garbage collection and are removed from cache when the garbage collection requires so.
Namespace:
com.espertech.esper.common.client.configuration.common
Assembly:
NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntaxpublic void SetExpiryTimeCache(
double maxAgeSeconds,
double purgeIntervalSeconds
)
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
See Also