예제 #1
0
        public bool ExpireAt(string key, DateTime time)
        {
            ValidateKeyVal(key);
            var command = new ExpireCommand(key, time);

            return(command.Execute());
        }
예제 #2
0
        public bool Expire(string key, int seconds)
        {
            ValidateKeyVal(key);
            var command = new ExpireCommand(key, seconds);

            return(command.Execute());
        }