Skip to content

Pact Cache IDistributedCacheService SetValue T (string System Func Microsoft Extensions Caching Distributed DistributedCacheEntryOptions T )

welshronaldo edited this page May 30, 2022 · 5 revisions

IDistributedCacheService.SetValue<T>(string, Func<DistributedCacheEntryOptions,T>) Method

Store a value type against the specified key

System.Nullable<T> SetValue<T>(string key, System.Func<Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions,T> factory)
    where T : struct;

Type parameters

T

Parameters

key System.String

factory System.Func<Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions,T>

Returns

System.Nullable<T>

Remarks

Does NOT internally serialize to JSON

Clone this wiki locally