Skip to content

)} ,System.Type)}

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

NameTypeDescription
keystringThe key to remove from the cache.

Returns: IObservable -- A signal indicating when the invalidate is complete.

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

NameTypeDescription
keystringThe key to remove from the cache.
typeTypeThe type.

Returns: IObservable -- A signal indicating when the invalidate is complete.

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

NameTypeDescription
keysIEnumerableThe keys to invalid.

Returns: IObservable -- A observable which signals when complete.

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

NameTypeDescription
keysIEnumerableThe keys to invalid.
typeTypeThe type to invalidate.

Returns: IObservable -- A observable which signals when complete.