B2R2


LRUCache<'K, 'V> Type

Least Recently Used Cache supporting concurrency. The capacity decides how many entries to store.

Constructors

Constructor Description

LRUCache(capacity)

Full Usage: LRUCache(capacity)

Parameters:
    capacity : int

Returns: LRUCache<'K, 'V>
capacity : int
Returns: LRUCache<'K, 'V>

Instance members

Instance member Description

this.Clear()

Full Usage: this.Clear()

this.Count

Full Usage: this.Count

Returns: int
Returns: int

this.GetOrAdd(key) (op) (arg)

Full Usage: this.GetOrAdd(key) (op) (arg)

Parameters:
Returns: 'V
key : 'K
op : ICacheableOperation<'a, 'V>
arg : 'a
Returns: 'V