Struct RandomAccessCache<TKey, TValue>.ReadSession
Represents a session that can be used to read the cache record value.
Implements
Inherited Members
Namespace: DotNext.Runtime.Caching
Assembly: DotNext.Threading.dll
Syntax
public readonly struct RandomAccessCache<TKey, TValue>.ReadSession : IDisposable
Remarks
While session alive, the record cannot be evicted.
Properties
| Edit this page View SourceKey
Gets the key associated with this cache entry.
Declaration
public TKey Key { get; }
Property Value
Type | Description |
---|---|
TKey |
Value
Gets the value of the cache record.
Declaration
public TValue Value { get; }
Property Value
Type | Description |
---|---|
TValue |
ValueRef
Gets a reference to a value.
Declaration
public ref readonly TValue ValueRef { get; }
Property Value
Type | Description |
---|---|
TValue |
Methods
| Edit this page View SourceDispose()
Closes the session.
Declaration
public void Dispose()