Struct RandomAccessCache.StringKey
Represents string as a key for RandomAccessCache<TValue>.
Inherited Members
Namespace: DotNext.Runtime.Caching
Assembly: DotNext.Threading.dll
Syntax
public readonly struct RandomAccessCache.StringKey : ISupplier<ReadOnlySpan<byte>>, IFunctional
Constructors
View SourceStringKey(string?)
Represents string as a key for RandomAccessCache<TValue>.
Declaration
public StringKey(string? key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key. |
Operators
View Sourceimplicit operator ReadOnlySpan<byte>(StringKey)
Converts this key to ReadOnlySpan<T> over char.
Declaration
public static implicit operator ReadOnlySpan<byte>(RandomAccessCache.StringKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| RandomAccessCache.StringKey | key | The key to convert. |
Returns
| Type | Description |
|---|---|
| ReadOnlySpan<byte> | ReadOnlySpan<T> over char which represents the key. |