RelativeTimeExtensions.InsertObject(IBlobCache, string, T, TimeSpan) method¶
Defined in
Type: RelativeTimeExtensions
Namespace: ReactiveMarbles.CacheDatabase.Core
Assembly: ReactiveMarbles.CacheDatabase.Core.dll
Applies to
netstandard2.0
public static IObservable<Unit> InsertObject<T>(this IBlobCache blobCache, string key, T value, TimeSpan expiration)
Summary: Inserts a item into the cache.
Type parameters
| Name | Description |
|---|---|
T | The type of item to insert. |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to insert the item into. |
key | string | The key to associate with the entry. |
value | T | The data for the entry. |
expiration | TimeSpan | A timespan that will be added to the current DateTime. |
Returns: IObservable