Struct TaskCacheKey
- Namespace
- GreenDonut
- Assembly
- GreenDonut.dll
The key of a cached task.
public readonly struct TaskCacheKey : IEquatable<TaskCacheKey>
- Implements
- Inherited Members
Constructors
TaskCacheKey(string, object)
Creates a new instance of TaskCacheKey.
public TaskCacheKey(string type, object key)
Parameters
Exceptions
- ArgumentNullException
type
orkey
isnull
.
Properties
Key
Gets the entity key.
public object Key { get; }
Property Value
Type
Gets the key type.
public string Type { get; }
Property Value
Methods
Equals(TaskCacheKey)
public bool Equals(TaskCacheKey other)
Parameters
other
TaskCacheKey
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()