Ejemplo n.º 1
0
 public static bool Contains(this IDistributedCache cache, DistributedCacheRegistration key, params object[] values) => cache.Contains(key.GetNamespace(values));
Ejemplo n.º 2
0
 public static async Task <T> GetAsync <T>(this IDistributedCache cache, DistributedCacheRegistration key, object tag, object[] values) => await GetOrCreateUsingLockAsync <T>(cache, key ?? throw new ArgumentNullException(nameof(key)), tag, values);
Ejemplo n.º 3
0
 public static void Remove(this IDistributedCache cache, DistributedCacheRegistration key, params object[] values) => cache.Remove(key.GetNamespace(values));
Ejemplo n.º 4
0
 public static DistributedCacheResult GetResult(this IDistributedCache cache, DistributedCacheRegistration key, object tag, params object[] values) => Get <DistributedCacheResult>(cache, key, tag, values);