Redis - keys disappear
Is it possible for keys to disappear in Redis for no reason? I add keys to redis:
Transaction transaction = jedis.multi();
transaction.incrBy(positionsQuantityKey, positionQuantity);
transaction.expire(positionsQuantityKey, 24 * 3600);
transaction.exec();
but after a few minutes I ran the command:
jedis.keys("*");
and the key disappeared. What can remove this key? I'm pretty sure the expiration time was set successfully because the result of this command was 1.
I am using redis 2.6
+3
source to share