Skip to content

RelativeTimeExtensions.Insert(IBlobCache, string, byte[], TimeSpan) method

Defined in

Type: RelativeTimeExtensions Namespace: ReactiveMarbles.CacheDatabase.Core Assembly: ReactiveMarbles.CacheDatabase.Core.dll

Applies to

netstandard2.0

public static IObservable<Unit> Insert(this IBlobCache blobCache, string key, byte[] data, TimeSpan expiration)

View source

Summary: Inserts a item into the cache.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to insert the item into.
keystringThe key to associate with the entry.
databyte[]The data for the entry.
expirationTimeSpanA timespan that will be added to the current DateTime.

Returns: IObservable -- A observable which will signal when the item is added.