Skip to content

)} ,System.Type)}

IBlobCache.Get(string) method

Defined in

Type: IBlobCache Namespace: Akavache.Reactive Assembly: Akavache.Reactive.dll

Applies to

net10.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-windows10.0.19041, net10.0-macos26.0, net9.0, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net462, net481

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.