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); }
public void Refresh(string key) { _pool.Expire(_instance + key, Expiry); }