Skip to content

Pact Cache DistributedCacheBase Get T (string System Text Json JsonSerializerOptions)

welshronaldo edited this page May 30, 2022 · 4 revisions

DistributedCacheBase.Get<T>(string, JsonSerializerOptions) Method

Get the value of a specified key and convert it to a reference type

public abstract T Get<T>(string key, System.Text.Json.JsonSerializerOptions jsonOptions=null)
    where T : class;

Type parameters

T

Parameters

key System.String

jsonOptions System.Text.Json.JsonSerializerOptions
Optional options to override the default STJ ones

Returns

T

Implements Get(string, JsonSerializerOptions)

Remarks

Internally deserializes from JSON

Clone this wiki locally