Example #1
0
 public static bool Contains(this IDistributedCache cache, DistributedCacheRegistration key, params object[] values) => cache.Contains(key.GetNamespace(values));
Example #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);
Example #3
0
 public static void Remove(this IDistributedCache cache, DistributedCacheRegistration key, params object[] values) => cache.Remove(key.GetNamespace(values));
Example #4
0
 public static DistributedCacheResult GetResult(this IDistributedCache cache, DistributedCacheRegistration key, object tag, params object[] values) => Get <DistributedCacheResult>(cache, key, tag, values);