Header menu logo fantomas

Cache<'Key, 'Value> Type

Constructors

Constructor Description

Cache(options, ?name)

Full Usage: Cache(options, ?name)

Parameters:
Returns: Cache<'Key, 'Value>
options : CacheOptions<'Key>
?name : string
Returns: Cache<'Key, 'Value>

Instance members

Instance member Description

this.AddOrUpdate

Full Usage: this.AddOrUpdate

Parameters:
    key : 'Key
    value : 'Value

key : 'Key
value : 'Value

this.CreateMetricsListener

Full Usage: this.CreateMetricsListener

Returns: CacheMetricsListener

For testing only. Creates a local telemetry listener for this cache instance.

Returns: CacheMetricsListener

this.Evicted

Full Usage: this.Evicted

Returns: IEvent<unit>

For testing only.

Returns: IEvent<unit>

this.EvictionFailed

Full Usage: this.EvictionFailed

Returns: IEvent<unit>

For testing only.

Returns: IEvent<unit>

this.GetOrAdd

Full Usage: this.GetOrAdd

Parameters:
    key : 'Key
    valueFactory : 'Key -> 'Value

Returns: 'Value
key : 'Key
valueFactory : 'Key -> 'Value
Returns: 'Value

this.TryAdd

Full Usage: this.TryAdd

Parameters:
    key : 'Key
    value : 'Value

Returns: bool
key : 'Key
value : 'Value
Returns: bool

this.TryGetValue

Full Usage: this.TryGetValue

Parameters:
    key : 'Key
    value : outref<'Value>

Returns: bool
key : 'Key
value : outref<'Value>
Returns: bool

Type something to start searching.