Interface ICache<TObject, TKey>
- Namespace
- Dynamic
Data
- 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
TObjectThe type of the object.
TKeyThe type of the key.
- Inherited Members
- Extension Methods
Methods
AddOrUpdate(TObject, TKey)
Adds or updates the item using the specified key.
Parameters
itemTObjectThe item.
keyTKeyThe key.
Clear()
Clears all items.
Clone(IChangeSet<TObject, TKey>)
Clones the cache from the specified changes.
Parameters
changesIChangeSet <TObject, TKey>The changes.
Refresh()
Sends a signal for operators to recalculate it's state.
Refresh(IEnumerable<TKey>)
Refreshes the items matching the specified keys.
Parameters
keysIEnumerable<TKey>The keys.
Refresh(TKey)
Refreshes the item matching the specified key.
Parameters
keyTKeyThe key to refresh.
Remove(IEnumerable<TKey>)
Removes all items matching the specified keys.
Parameters
keysIEnumerable<TKey>The keys to remove.
Remove(TKey)
Removes the item matching the specified key.
Parameters
keyTKeyThe key.
See Also
IQuery<TObject, TKey>