Table of Contents

Class CacheEntry

Namespace
DotCompute.Core.Models
Assembly
DotCompute.Core.dll

Represents a cached kernel entry.

public class CacheEntry
Inheritance
CacheEntry
Inherited Members

Properties

AccessCount

Gets or sets the number of times this entry has been accessed.

public int AccessCount { get; set; }

Property Value

int

CreatedAt

Gets or sets when the entry was created.

public DateTimeOffset CreatedAt { get; set; }

Property Value

DateTimeOffset

IsExpired

Gets whether this entry has expired.

public bool IsExpired { get; }

Property Value

bool

IsPinned

Gets or sets whether this entry is pinned in cache.

public bool IsPinned { get; set; }

Property Value

bool

Kernel

Gets or sets the cached kernel.

public CompiledKernel? Kernel { get; set; }

Property Value

CompiledKernel

Key

Gets or sets the cache key.

public string Key { get; set; }

Property Value

string

LastAccessedAt

Gets or sets when the entry was last accessed.

public DateTimeOffset LastAccessedAt { get; set; }

Property Value

DateTimeOffset

SizeInBytes

Gets or sets the size of the cached data in bytes.

public long SizeInBytes { get; set; }

Property Value

long

TimeToLive

Gets or sets the time-to-live for this entry.

public TimeSpan? TimeToLive { get; set; }

Property Value

TimeSpan?