Generic Last Recently Used cache optimised for read and infrequent automatic trim operations. Implements relevant parts of IDictionary.
More...
|
| LruCache (uint maxSize=5000, uint trimToSize=2500) |
|
TValue | GetValueOrDefault (TKey key, TValue defaultValue) |
|
TValue | GetOrAdd (TKey key, Func< TValue > factory) |
|
void | Add (TKey key, TValue value) |
|
bool | ContainsKey (TKey key) |
|
bool | Remove (TKey key) |
|
bool | TryGetValue (TKey key, out TValue value) |
|
IEnumerator< KeyValuePair< TKey, TValue > > | GetEnumerator () |
|
void | Add (KeyValuePair< TKey, TValue > item) |
|
void | Clear () |
|
|
readonly uint | MaxSize |
|
readonly uint | TrimToSize |
|
|
TValue | this[TKey key] [get, set] |
|
ICollection< TKey > | Keys [get] |
|
ICollection< TValue > | Values [get] |
|
int | Count [get] |
|
bool | IsReadOnly [get] |
|
Generic Last Recently Used cache optimised for read and infrequent automatic trim operations. Implements relevant parts of IDictionary.
- Template Parameters
-
TKey | Key type |
TValue | Value type |
The documentation for this class was generated from the following file:
- Src/Libraries/TPG.Primitives/LRUCache.cs