Example #1
0
        public void PEXPIRE_PTTL()
        {
            long      dt  = -1;
            StringKey key = "HENRY_EMAIL";

            key.Set("*****@*****.**");
            key.PExpire(2000);
            long value = key.PTTL();

            Assert.AreNotEqual(value, 0);
            System.Threading.Thread.Sleep(2000);
            value = key.PTTL();
            Assert.AreEqual(value, dt);
        }