)>
Defined in Type: SerializerExtensions
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, DateTimeOffset? absoluteExpiration = null)
Summary: Insert an object into the cache, via the JSON serializer.
Type parameters
| Name | Description |
|---|---|
T | The type of object associated with the blob. |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache. |
key | string | The key to associate with the object. |
value | T | The object to serialize. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable