Skip to content

Applies to

netstandard2.0

public static IObservable<Unit> InsertObject<T>(this IBlobCache blobCache, string key, T value, DateTimeOffset? absoluteExpiration = null)

View source

Summary: Insert an object into the cache, via the JSON serializer.

Type parameters

NameDescription
TThe type of object associated with the blob.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache.
keystringThe key to associate with the object.
valueTThe object to serialize.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A Future result representing the completion of the insert.