Skip to content

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

Defined in

Type: RelativeTimeMixin Namespace: Akavache Assembly: Akavache.Core.dll

Applies to

net9.0, net9.0-maccatalyst18.0, net9.0-macos15.0, net9.0-tvos18.0, net9.0-android35.0, net9.0-ios18.0, net8.0, net8.0-android34.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos17.2, netstandard2.1, 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.