ConcurrentLRUCache<'K, 'V> Type
Represents Least Recently Used (LRU) cache supporting concurrency. The capacity must be positive and decides how many entries to store.
Constructors
| Constructor |
Description
|
Full Usage:
ConcurrentLRUCache(capacity)
Parameters:
int
Returns: ConcurrentLRUCache<'K, 'V>
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Clear
|
Removes all entries from the cache. |
Full Usage:
this.Count
Returns: int
|
Gets the number of entries currently stored in the cache.
|
Full Usage:
this.GetOrAdd
Parameters:
'K
factory : ICacheValueFactory<'a, 'V>
arg : 'a
Returns: 'V
|
Gets the value for the given key, or computes and adds it on a cache miss.
The cache lock is not held while
|
B2R2