Show / Hide Table of Contents

Struct RandomAccessCache.ReadOnlyMemoryKey

Represents ReadOnlyMemory<T> of byte as a key for RandomAccessCache<TValue>.

Implements
ISupplier<ReadOnlySpan<byte>>
IFunctional
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.ReadOnlyMemoryKey : ISupplier<ReadOnlySpan<byte>>, IFunctional

Constructors

View Source

ReadOnlyMemoryKey(in ReadOnlyMemory<byte>)

Represents ReadOnlyMemory<T> of byte as a key for RandomAccessCache<TValue>.

Declaration
public ReadOnlyMemoryKey(in ReadOnlyMemory<byte> key)
Parameters
Type Name Description
ReadOnlyMemory<byte> key

The key.

Operators

View Source

implicit operator ReadOnlySpan<byte>(ReadOnlyMemoryKey)

Converts key to ReadOnlySpan<T> over byte.

Declaration
public static implicit operator ReadOnlySpan<byte>(RandomAccessCache.ReadOnlyMemoryKey key)
Parameters
Type Name Description
RandomAccessCache.ReadOnlyMemoryKey key

The key to convert.

Returns
Type Description
ReadOnlySpan<byte>

ReadOnlySpan<T> over byte which represents the key.

Implements

ISupplier<TResult>
IFunctional

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
☀
☾