Skip to content

Pact Cache DualLayerCacheService SetValueAsync T (string T Microsoft Extensions Caching Distributed DistributedCacheEntryOptions)

welshronaldo edited this page May 30, 2022 · 4 revisions

DualLayerCacheService.SetValueAsync<T>(string, T, DistributedCacheEntryOptions) Method

Store a value type against the specified key

public override System.Threading.Tasks.Task<System.Nullable<T>> SetValueAsync<T>(string key, T value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options)
    where T : struct;

Type parameters

T

Parameters

key System.String

value T

options Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions

Returns

System.Threading.Tasks.Task<System.Nullable<T>>

Implements SetValueAsync(string, T, DistributedCacheEntryOptions)

Remarks

Does NOT internally serialize to JSON

Clone this wiki locally