Show / Hide Table of Contents

Struct RandomAccessCache<TKey, TValue>.ReadSession

Represents a session that can be used to read the cache record value.

Implements
IDisposable
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
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 Source

Key

Gets the key associated with this cache entry.

Declaration
public TKey Key { get; }
Property Value
Type Description
TKey
| Edit this page View Source

Value

Gets the value of the cache record.

Declaration
public TValue Value { get; }
Property Value
Type Description
TValue
| Edit this page View Source

ValueRef

Gets a reference to a value.

Declaration
public ref readonly TValue ValueRef { get; }
Property Value
Type Description
TValue

Methods

| Edit this page View Source

Dispose()

Closes the session.

Declaration
public void Dispose()

Implements

IDisposable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾