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
| Name | Type | Description |
|---|---|---|
key | string | The key to return asynchronously. |
Returns: IObservable
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
| Name | Type | Description |
|---|---|---|
keys | IEnumerable | The keys to get the values for. |
Returns: IObservable
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
| Name | Type | Description |
|---|---|---|
key | string | The key to return asynchronously. |
type | Type | The type. |
Returns: IObservable
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
| Name | Type | Description |
|---|---|---|
keys | IEnumerable | The keys to get the values for. |
type | Type | The type. |
Returns: IObservable