Skip to content

Applies to

netstandard2.0

public static IObservable<Unit> InsertAllObjects<T>(this IBlobCache blobCache, IEnumerable<KeyValuePair<string, T>> keyValuePairs, DateTimeOffset? absoluteExpiration = null)

View source

Summary: Insert several objects into the cache, via the JSON serializer. Similarly to InsertAll, partial inserts should not happen.

Type parameters

NameDescription
TThe type of item.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The cache to insert the items.
keyValuePairsIEnumerable>The data to insert into the cache.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

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