Table of Contents

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

type string

The key type.

key object

The entity key.

Exceptions

ArgumentNullException

type or key is null.

Properties

Key

Gets the entity key.

public object Key { get; }

Property Value

object

Type

Gets the key type.

public string Type { get; }

Property Value

string

Methods

Equals(TaskCacheKey)

public bool Equals(TaskCacheKey other)

Parameters

other TaskCacheKey

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int