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.GetType()
object.Equals(object, object)
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

View Source

Key

Gets the key associated with this cache entry.

Declaration
public TKey Key { get; }
Property Value
Type Description
TKey
View Source

Value

Gets the value of the cache record.

Declaration
public TValue Value { get; }
Property Value
Type Description
TValue
View Source

ValueRef

Gets a reference to a value.

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

Methods

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, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾