Class RandomAccessCache
Provides various helpers to work with RandomAccessCache<TValue>.
Inherited Members
Namespace: DotNext.Runtime.Caching
Assembly: DotNext.Threading.dll
Syntax
public static class RandomAccessCache
Methods
View SourceAsKey(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>. |
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>. |