-
Notifications
You must be signed in to change notification settings - Fork 1
Pact Cache DualLayerCacheService
welshronaldo edited this page May 30, 2022
·
4 revisions
Provides a wrapper around the default DistributedCache to add common functionality
public class DualLayerCacheService : Pact.Cache.DistributedCacheBase
Inheritance System.Object 🡒 DistributedCacheBase 🡒 DualLayerCacheService
Methods | |
---|---|
Get<T>(string, JsonSerializerOptions) | Get the value of a specified key and convert it to a reference type |
GetAsync<T>(string, JsonSerializerOptions) | Retrieves a reference type from json format against the specified key |
GetMemoryRetention(DistributedCacheEntryOptions) | Ensures the in-memory retention is not beyond the provided distributed options |
GetValue<T>(string) | Get the value type of a specified key |
GetValueAsync<T>(string) | Retrieves a value type against the specified key |
Remove(string[]) | Remove specified keys |
RemoveAsync(string[]) | Remove specified keys |
Set<T>(string, T, DistributedCacheEntryOptions, JsonSerializerOptions) | Convert a reference type to a json string and store it against the specified key |
SetAsync<T>(string, T, DistributedCacheEntryOptions, JsonSerializerOptions) | Convert a reference type to a json string and store it against the specified key |
SetValue<T>(string, T, DistributedCacheEntryOptions) | Store a value type against the specified key |
SetValueAsync<T>(string, T, DistributedCacheEntryOptions) | Store a value type against the specified key |