Interface ICache<TObject, TKey>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
A cache which captures all changes which are made to it. These changes are recorded until CaptureChanges() at which point thw changes are cleared.
Used for creating custom operators.
public interface ICache<TObject, TKey> : IQuery<TObject, TKey> where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inherited Members
Methods
AddOrUpdate(TObject, TKey)
Adds or updates the item using the specified key.
void AddOrUpdate(TObject item, TKey key)
Parameters
item
TObjectThe item.
key
TKeyThe key.
Clear()
Clears all items.
void Clear()
Clone(IChangeSet<TObject, TKey>)
Clones the cache from the specified changes.
void Clone(IChangeSet<TObject, TKey> changes)
Parameters
changes
IChangeSet<TObject, TKey>The changes.
Refresh()
Sends a signal for operators to recalculate it's state.
void Refresh()
Refresh(IEnumerable<TKey>)
Refreshes the items matching the specified keys.
void Refresh(IEnumerable<TKey> keys)
Parameters
keys
IEnumerable<TKey>The keys.
Refresh(TKey)
Refreshes the item matching the specified key.
void Refresh(TKey key)
Parameters
key
TKeyThe key to refresh.
Remove(IEnumerable<TKey>)
Removes all items matching the specified keys.
void Remove(IEnumerable<TKey> keys)
Parameters
keys
IEnumerable<TKey>The keys to remove.
Remove(TKey)
Removes the item matching the specified key.
void Remove(TKey key)
Parameters
key
TKeyThe key.
See Also
IQuery<TObject, TKey>