Interface IObservableCache<TObject, TKey>
- Namespace
- Dynamic
Data
- Assembly
- DynamicData.dll
A cache for observing and querying in memory data. With additional data access operators.
public interface IObservableCache<TObject, TKey> : IConnectableCache<TObject, TKey>, IDisposable where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inherited Members
- Extension Methods
Properties
Count
Gets the total count of cached items.
Property Value
Items
Gets the Items.
Property Value
- IRead
Only <TObject>List
KeyValues
Gets the key value pairs.
Property Value
- IRead
Only <TKey, TObject>Dictionary
Keys
Gets the keys.
Property Value
- IRead
Only <TKey>List
Methods
Lookup(TKey)
Lookup a single item using the specified key.
Parameters
key
TKeyThe key.
Returns
- Optional<TObject>
An optional with the looked up value.
Remarks
Fast indexed lookup.