Interface IExpiryPolicy
Defines functions to determine when cache entries will expire based on creation, access and modification operations.
Namespace: Apache.Ignite.Core.Cache.Expiry
Assembly: Apache.Ignite.Core.dll
Syntax
public interface IExpiryPolicy
Methods
GetExpiryForAccess()
Gets expiry for access operation.
If TimeSpan.ZERO
is returned, cache entry is considered immediately expired.
If null
is returned, no change to previously understood expiry is performed.
Declaration
TimeSpan? GetExpiryForAccess()
Returns
Type | Description |
---|---|
System.Nullable<TimeSpan> | Expiry for access operation. |
GetExpiryForCreate()
Gets expiry for create operation.
If TimeSpan.ZERO
is returned, cache entry is considered immediately expired
and will not be added to cache.
If null
is returned, no change to previously understood expiry is performed.
Declaration
TimeSpan? GetExpiryForCreate()
Returns
Type | Description |
---|---|
System.Nullable<TimeSpan> | Expiry for create opeartion. |
GetExpiryForUpdate()
Gets expiry for update operation.
If TimeSpan.ZERO
is returned, cache entry is considered immediately expired.
If null
is returned, no change to previously understood expiry is performed.
Declaration
TimeSpan? GetExpiryForUpdate()
Returns
Type | Description |
---|---|
System.Nullable<TimeSpan> | Expiry for update operation. |