Table of Contents

Class CacheKey

Namespace
FoundationaLLM.Common.Models.Cache
Assembly
FoundationaLLM.Common.dll

Composite caching key.

public class CacheKey
Inheritance
CacheKey
Inherited Members
Extension Methods

Constructors

CacheKey(string, string)

Composite caching key.

public CacheKey(string name, string category)

Parameters

name string

The name of the object identified by the cache key.

category string

The category of the object identified by the cache key.

Fields

Category

The category of the object from the cache.

public string Category

Field Value

string

Name

The name of the object from the cache.

public string Name

Field Value

string

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.