Show / Hide Table of Contents

Interface IMemoizationCacheEntryMetrics

Interface used to access metrics on memoization cache entries for ranking purposes.

Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public interface IMemoizationCacheEntryMetrics

Properties

AverageAccessTime

Gets the average time it takes to obtain the memoization result from the cache.

Declaration
TimeSpan AverageAccessTime { get; }
Property Value
Type Description
System.TimeSpan

CreationTime

Gets the creation time for the cache entry. This value is relative to the creation time of the cache.

Declaration
TimeSpan CreationTime { get; }
Property Value
Type Description
System.TimeSpan

HitCount

Gets the number of cache hits for the cache entry upon invoking the memoized function.

Declaration
int HitCount { get; }
Property Value
Type Description
System.Int32

InvokeDuration

Gets the time it took to invoke the function whose result is memoized in the cache entry.

Declaration
TimeSpan InvokeDuration { get; }
Property Value
Type Description
System.TimeSpan

LastAccessTime

Gets the last access time for the cache entry. This value is relative to the creation time of the cache.

Declaration
TimeSpan LastAccessTime { get; }
Property Value
Type Description
System.TimeSpan

SpeedupFactor

Gets the speedup factor for the cache entry, i.e. the division of function invocation time by average access time. A value less than 1.0 indicates a slowdown; a value higher than 1.0 indicates a speedup.

Declaration
double SpeedupFactor { get; }
Property Value
Type Description
System.Double
In This Article
Back to top Generated by DocFX