|
PeanutButter
|
Provides a wrapping read-write layer around another dictionary effectively allowing transparent rename of the keys. More...
Public Member Functions | |
| ExpiringDictionary (TimeSpan ttl) | |
| Provides a dictionary which expires elements based on their age. | |
| IEnumerator< KeyValuePair< TKey, TValue > > | GetEnumerator () |
| void | Add (KeyValuePair< TKey, TValue > item) |
| void | Clear () |
| bool | Contains (KeyValuePair< TKey, TValue > item) |
| void | CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex) |
| bool | Remove (KeyValuePair< TKey, TValue > item) |
| void | Add (TKey key, TValue value) |
| bool | ContainsKey (TKey key) |
| bool | Remove (TKey key) |
| bool | TryGetValue (TKey key, out TValue value) |
Properties | |
| int | Count [get] |
| bool | IsReadOnly [get] |
| TValue | this[TKey key] [get, set] |
| ICollection< TKey > | Keys [get] |
| ICollection< TValue > | Values [get] |
Provides a wrapping read-write layer around another dictionary effectively allowing transparent rename of the keys.
| TKey | Type of keys |
| TValue | Type of values stored |
| PeanutButter.Utils.Dictionaries.ExpiringDictionary< TKey, TValue >.ExpiringDictionary | ( | TimeSpan | ttl | ) |
Provides a dictionary which expires elements based on their age.
| ttl |
| ArgumentException |