Show / Hide Table of Contents

Class RandomAccessCache

Provides various helpers to work with RandomAccessCache<TValue>.

Inheritance
object
RandomAccessCache
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Runtime.Caching
Assembly: DotNext.Threading.dll
Syntax
public static class RandomAccessCache

Methods

View Source

AsKey(in ReadOnlyMemory<byte>)

Returns ReadOnlyMemory<T> as a key.

Declaration
public static RandomAccessCache.ReadOnlyMemoryKey AsKey(in ReadOnlyMemory<byte> key)
Parameters
Type Name Description
ReadOnlyMemory<byte> key

The key.

Returns
Type Description
RandomAccessCache.ReadOnlyMemoryKey

The object that can be used as a key in RandomAccessCache<TValue>.

View Source

AsKey(string?)

Returns string as a key.

Declaration
public static RandomAccessCache.StringKey AsKey(string? key)
Parameters
Type Name Description
string key

The key.

Returns
Type Description
RandomAccessCache.StringKey

The object that can be used as a key in RandomAccessCache<TValue>.

  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾