Skip to content

JsonSerializationMixin.GetObject(IBlobCache, string) method

Defined in

Type: JsonSerializationMixin 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<T?> GetObject<T>(this IBlobCache blobCache, string key)

View source

Summary: Get an object from the cache and deserialize it via the JSON serializer.

Type parameters

NameDescription
TThe type of item.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The cache to get the item.
keystringThe key to look up in the cache modified key name. If this is true, GetAllObjects will not find this object.

Returns: IObservable -- A Future result representing the object in the cache.