Skip to content

Pact Cache Extensions DistributedCacheExtensions AbsoluteExpirationOption(Pact Cache IDistributedCacheService System TimeSpan)

welshronaldo edited this page May 30, 2022 · 5 revisions

DistributedCacheExtensions.AbsoluteExpirationOption(IDistributedCacheService, TimeSpan) Method

Creates a DistributedCacheEntryOptions set to expire on a given timespan from now

public static Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions AbsoluteExpirationOption(this Pact.Cache.IDistributedCacheService _, System.TimeSpan cacheTime);

Parameters

_ IDistributedCacheService

cacheTime System.TimeSpan
The time from now the cache time will expire

Returns

Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions

Clone this wiki locally