Interface IConfigurableCacheEntry
A cache Entry carries information additional to the base Map Entry in order to support eviction and expiry.
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public interface IConfigurableCacheEntry : ICacheEntry
Properties
ExpiryMillis
Get or set when the cache entry will expire, if ever.
Declaration
long ExpiryMillis { get; set; }
Property Value
Type | Description |
---|---|
long | The date/time value, in millis, when the entry will (or did) expire; zero indicates no expiry. |
Remarks
If the cache is configured for automatic expiry, each subsequent update to this cache entry will reschedule the expiry time.
IsExpired
Determine if this entry has expired.
Declaration
bool IsExpired { get; }
Property Value
Type | Description |
---|---|
bool |
|
LastTouchMillis
Determine when the cache entry was last touched.
Declaration
long LastTouchMillis { get; }
Property Value
Type | Description |
---|---|
long | The date/time value, in millis, when the entry was most recently touched. |
TouchCount
Determine the number of times that the cache entry has been touched (since the touch count was last reset).
Declaration
int TouchCount { get; }
Property Value
Type | Description |
---|---|
int | The number of times that the cache entry has been touched. |
Units
Get or set the number of cache units used by this entry.
Declaration
int Units { get; set; }
Property Value
Type | Description |
---|---|
int | An integer value 0 or greater, with a larger value signifying a higher cost; -1 implies that the entry has been discarded |
Methods
Touch()
Indicate to the entry that it has been touched, such as when it is accessed or modified.
Declaration
void Touch()