public static void ExpireTokenForKey(string key)
 {
     if (!(key is null))
     {
         CacheCancellableTokensRegistry.TryCancelToken(GenerateRegionTokenKey(key));
     }
 }
 public static IChangeToken CreateChangeTokenForKey(string key)
 {
     if (key is null)
     {
         throw new ArgumentNullException(nameof(key));
     }
     return(new CompositeChangeToken(new[] { CreateChangeToken(), CacheCancellableTokensRegistry.CreateChangeToken(GenerateRegionTokenKey(key)) }));
 }
 public static void ExpireRegion()
 {
     CacheCancellableTokensRegistry.TryCancelToken(GenerateRegionTokenKey());
 }
 public static IChangeToken CreateChangeToken()
 {
     return(CacheCancellableTokensRegistry.CreateChangeToken(GenerateRegionTokenKey()));
 }