public override void DecrementCounter(string key, TimeSpan expireIn)
 {
     QueueCommand(() =>
     {
         var counter      = CounterUtilities.IncrementCounter(_data, key, true);
         counter.ExpireAt = DateTime.UtcNow.Add(expireIn);
     });
 }
예제 #2
0
 public void IncrementCounter(string key, TimeSpan expireIn)
 {
     QueueCommand(() =>
     {
         var counter      = CounterUtilities.IncrementCounter(key, false);
         counter.ExpireAt = DateTime.UtcNow.Add(expireIn);
     });
 }
 public override void DecrementCounter(string key)
 {
     QueueCommand(() => { CounterUtilities.IncrementCounter(_data, key, true); });
 }
예제 #4
0
 public override void IncrementCounter(string key)
 {
     QueueCommand(() => { CounterUtilities.IncrementCounter(key, false); });
 }
예제 #5
0
 public void DecrementCounter(string key)
 {
     QueueCommand(() => { CounterUtilities.IncrementCounter(key, true); });
 }