public override void DecrementCounter(string key, TimeSpan expireIn) { QueueCommand(() => { var counter = CounterUtilities.IncrementCounter(_data, key, true); counter.ExpireAt = DateTime.UtcNow.Add(expireIn); }); }
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); }); }
public override void IncrementCounter(string key) { QueueCommand(() => { CounterUtilities.IncrementCounter(key, false); }); }
public void DecrementCounter(string key) { QueueCommand(() => { CounterUtilities.IncrementCounter(key, true); }); }