Skip to content

Pact Cache DistributedCacheService SetValue T (string T Microsoft Extensions Caching Distributed DistributedCacheEntryOptions)

welshronaldo edited this page May 30, 2022 · 5 revisions

DistributedCacheService.SetValue<T>(string, T, DistributedCacheEntryOptions) Method

Store a value type against the specified key

public override System.Nullable<T> SetValue<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.Nullable<T>

Implements SetValue(string, T, DistributedCacheEntryOptions)

Remarks

Does NOT internally serialize to JSON

Clone this wiki locally