Header menu logo F# Compiler Guide

CacheMetricsListener Type

A listener that captures cache metrics, matching by cache name or exact cache tags.

Constructors

Constructor Description

CacheMetricsListener(cacheName)

Full Usage: CacheMetricsListener(cacheName)

Parameters:
    cacheName : string

Returns: CacheMetricsListener

Creates a listener that aggregates metrics across all cache instances with the given name.

cacheName : string
Returns: CacheMetricsListener

Instance members

Instance member Description

this.GetTotals

Full Usage: this.GetTotals

Returns: Map<string, int64>

Gets the current totals for each metric type.

Returns: Map<string, int64>

this.Hits

Full Usage: this.Hits

Returns: int64

Gets the total number of cache hits.

Returns: int64

this.Misses

Full Usage: this.Misses

Returns: int64

Gets the total number of cache misses.

Returns: int64

this.Ratio

Full Usage: this.Ratio

Returns: float

Gets the current hit ratio (hits / (hits + misses)).

Returns: float

Type something to start searching.