IBlobCache.Invalidate(string) method¶
Defined in
Type: IBlobCache
Namespace: ReactiveMarbles.CacheDatabase.Core
Assembly: ReactiveMarbles.CacheDatabase.Core.dll
Applies to
netstandard2.0
Overloads¶
- 1.
IObservable<Unit> Invalidate(string key) - 2.
IObservable<Unit> Invalidate(string key, Type type) - 3.
IObservable<Unit> Invalidate(IEnumerable<string> keys) - 4.
IObservable<Unit> Invalidate(IEnumerable<string> keys, Type type)
1. Overload¶
IObservable<Unit> Invalidate(string key)
Summary: Remove a key from the cache. If the key doesn't exist, this method should do nothing and return (not throw KeyNotFoundException).
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key to remove from the cache. |
Returns: IObservable
2. Overload¶
IObservable<Unit> Invalidate(string key, Type type)
Summary: Remove a key from the cache. If the key doesn't exist, this method should do nothing and return (not throw KeyNotFoundException).
Parameters
| Name | Type | Description |
|---|---|---|
key | string | The key to remove from the cache. |
type | Type | The type. |
Returns: IObservable
3. Overload¶
IObservable<Unit> Invalidate(IEnumerable<string> keys)
Summary: Invalidates all the entries at the specified keys, causing them in future to have to be re-fetched.
Parameters
| Name | Type | Description |
|---|---|---|
keys | IEnumerable | The keys to invalid. |
Returns: IObservable
4. Overload¶
IObservable<Unit> Invalidate(IEnumerable<string> keys, Type type)
Summary: Invalidates all the entries at the specified keys, causing them in future to have to be re-fetched.
Parameters
| Name | Type | Description |
|---|---|---|
keys | IEnumerable | The keys to invalid. |
type | Type | The type to invalidate. |
Returns: IObservable