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