Exemplo n.º 1
0
        public bool SetTTL(string key, TimeSpan ttl)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                throw new ArgumentException("Parameter is invalid.", "key", null);
            }

            try
            {
                return(_db.KeyExpire(key, ttl));
            }
            catch (Exception)
            {
                throw;
            }
            finally
            { }
        }