public void Refresh(string key, int timeout)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentNullException(nameof(key));
            }
            if (timeout < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(timeout));
            }

            _pool.Expire(_instance + key, timeout);
        }
示例#2
0
 public void Refresh(string key)
 {
     _pool.Expire(_instance + key, Expiry);
 }