Skip to content

)} ,System.Type)}

IBlobCache.Get(string) method

Defined in

Type: IBlobCache Namespace: ReactiveMarbles.CacheDatabase.Core Assembly: ReactiveMarbles.CacheDatabase.Core.dll

Applies to

netstandard2.0

Overloads

  • 1. IObservable<byte[]?> Get(string key)
  • 2. IObservable<KeyValuePair<string, byte[]>> Get(IEnumerable<string> keys)
  • 3. IObservable<byte[]?> Get(string key, Type type)
  • 4. IObservable<KeyValuePair<string, byte[]>> Get(IEnumerable<string> keys, Type type)

1. Overload

IObservable<byte[]?> Get(string key)

Summary: Retrieve a value from the key-value cache. If the key is not in the cache, this method should return an IObservable which OnError's with KeyNotFoundException.

Parameters

NameTypeDescription
keystringThe key to return asynchronously.

Returns: IObservable -- A Future result representing the byte data.

2. Overload

IObservable<KeyValuePair<string, byte[]>> Get(IEnumerable<string> keys)

Summary: Gets a observable of key value pairs with the specified keys with their corresponding values.

Parameters

NameTypeDescription
keysIEnumerableThe keys to get the values for.

Returns: IObservable> -- A observable with the specified values.

3. Overload

IObservable<byte[]?> Get(string key, Type type)

Summary: Retrieve a value from the key-value cache. If the key is not in the cache, this method should return an IObservable which OnError's with KeyNotFoundException.

Parameters

NameTypeDescription
keystringThe key to return asynchronously.
typeTypeThe type.

Returns: IObservable -- A Future result representing the byte data.

4. Overload

IObservable<KeyValuePair<string, byte[]>> Get(IEnumerable<string> keys, Type type)

Summary: Gets a observable of key value pairs with the specified keys with their corresponding values.

Parameters

NameTypeDescription
keysIEnumerableThe keys to get the values for.
typeTypeThe type.

Returns: IObservable> -- A observable with the specified values.