[This is preliminary documentation and is subject to change.]
The CacheRec type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | CacheRec | Initializes a new instance of the CacheRec class |
Methods
Name | Description | |
---|---|---|
![]() | Destructor | (Overrides DisposableObject Destructor .) |
![]() | Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) |
![]() | EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ReuseCTOR |
Used as a "constructor" that reuses this class instance to lessen GC burden
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | ValueAs T |
Returns typecasted value
|
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() | Key |
Key is immutable because CacheRec is returned by table.Get(key)
|
![]() | m_AbsoluteExpirationUTC | |
![]() | m_AgeSec | |
![]() | m_CreateDate | |
![]() | m_HitCount | |
![]() | m_MaxAgeSec | |
![]() | m_Priority | |
![]() | m_Value | |
![]() | Metadata |
Stores arbitrary information about this item
|
Properties
Name | Description | |
---|---|---|
![]() | AbsoluteExpirationUTC |
Returns absolute expiration timestamp for this item or null
|
![]() | AgeSec |
Returns an approximate age of the item in seconds - an interval since this item was put into the store for the last time
|
![]() | Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) |
![]() | DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) |
![]() | HitCount |
Returns how many times this cache item was hit (resulted in successfull read)
|
![]() | MaxAgeSec |
Returns positive integer that specifies the maximum lifespan duration for this item expressed in seconds, or zero.
Zero is returned when this item does not have specific lifespan defined and will be evicted from cache
per lifespan specified on the table level: Table.MaxAgeSec (default)
|
![]() | Priority |
Returns an integer value that dictates item priority relative to other items in the same table.
Priorities play a role during cache collision as an item with higher priority is not going to be replaced
by an item with lower priority
|
![]() | Value |
Returns the value - a reference to cached item such as a business object
|
See Also