Summary
Cache designed to be used for custom operator construction. It requires no key to be specified
but instead relies on the user specifying the key when amending data.
- Namespace
- DynamicData
- Interfaces
-
- IIntermediateCache
<TObject, TKey> - IObservableCache
<TObject, TKey> - IConnectableCache
<TObject, TKey> - IDisposable
- IIntermediateCache
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IIntermediateCache<TObject, TKey>"]
Type-.->Interface1["IObservableCache<TObject, TKey>"]
Type-.->Interface2["IConnectableCache<TObject, TKey>"]
Type-.->Interface3["IDisposable"]
Type["IntermediateCache<TObject, TKey>"]
class Type type-node
Syntax
public sealed class IntermediateCache<TObject, TKey> : IIntermediateCache<TObject, TKey>,
IObservableCache<TObject, TKey>, IConnectableCache<TObject, TKey>, IDisposable
where TKey : notnull
Type Parameters
Name | Description |
---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Constructors
Name | Summary |
---|---|
IntermediateCache |
Initializes a new instance of the IntermediateCache<TObject, TKey> class.
|
IntermediateCache |
Initializes a new instance of the IntermediateCache<TObject, TKey> class.
|
Properties
Name | Value | Summary |
---|---|---|
Count | int |
Gets the total count of cached items.
|
CountChanged | IObservable |
Gets a count changed observable starting with the current count.
|
Items | IEnumerable |
Gets the Items.
|
Keys | IEnumerable |
Gets the keys.
|
KeyValues | IEnumerable |
Gets the key value pairs.
|
Methods
Name | Value | Summary |
---|---|---|
Connect |
IObservable |
Returns a observable of cache changes preceded with the initial cache state.
|
Connect |
IObservable |
Returns a filtered change set of cache changes preceded with the initial state.
|
Dispose |
void |
Releases unmanaged and - optionally - managed resources.
|
Edit |
void |
Action to apply a batch update to a cache. Multiple update methods can be invoked within a single batch operation.
These operations are invoked within the cache's lock and is therefore thread safe.
The result of the action will produce a single change set.
|
Lookup |
Optional |
Lookup a single item using the specified key.
|
Preview |
IObservable |
Returns a filtered stream of cache changes.
Unlike Connect(), the returned observable is not prepended with the caches initial items.
|
Watch |
IObservable |
Returns an observable of any changes which match the specified key. The sequence starts with the initial item in the cache (if there is one).
|