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
TObject
The type of the object.
TKey
The type of the key.
- Inherited Members
- Extension Methods
Methods
AddOrUpdate(TObject, TKey)
Adds or updates the item using the specified key.
Parameters
item
TObjectThe item.
key
TKeyThe key.
Clear()
Clears all items.
Clone(IChangeSet<TObject, TKey>)
Clones the cache from the specified changes.
Parameters
changes
IChangeSet <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
keys
IEnumerable<TKey>The keys.
Refresh(TKey)
Refreshes the item matching the specified key.
Parameters
key
TKeyThe key to refresh.
Remove(IEnumerable<TKey>)
Removes all items matching the specified keys.
Parameters
keys
IEnumerable<TKey>The keys to remove.
Remove(TKey)
Removes the item matching the specified key.
Parameters
key
TKeyThe key.
See Also
IQuery<TObject, TKey>