/// <summary> /// Set no lock. /// </summary> public void Set() { _lockTTL = _ttl.Ticks; _lastTimeStamp = CachingUtils.DiffTicks(DateTime.Now); }
/// <summary> /// Verifica se já expirou. /// </summary> /// <returns></returns> public bool HasExpired() { return(SortKey.CompareTo(CachingUtils.DiffTicks(DateTime.Now)) < 0); }