Skip to content

)} ,System.Type)}

InMemoryBlobCacheBase.Get(string) method

Defined in

Type: InMemoryBlobCacheBase Namespace: Akavache Assembly: Akavache.dll

Applies to

net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-macos15.0, net9.0-ios18.0, net9.0-android35.0, net8.0, net8.0-macos14.5, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-ios17.5, net8.0-tvos18.0, net8.0-macos15.0, net8.0-ios18.0, net8.0-windows10.0.19041, net8.0-maccatalyst18.0, net8.0-tvos17.2, netstandard2.1, net481, net462

Overloads

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

1. Overload

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

View source

Inherited documentation

These docs were inherited from IBlobCache. The member doesn't override them on this 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.

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

2. Overload

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

View source

Inherited documentation

These docs were inherited from IBlobCache. The member doesn't override them on this 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.

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

3. Overload

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

View source

Inherited documentation

These docs were inherited from IBlobCache. The member doesn't override them on this 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

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

View source

Inherited documentation

These docs were inherited from IBlobCache. The member doesn't override them on this 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.