long expireAtTime = currentTime + (maxInactiveInterval * 1000);
long expireAtTimeWithReserve = currentTime + (maxInactiveInterval * 1000 * 2);
Jedis jedis = pool.getResource();
try {
Transaction transaction = jedis.multi();
transaction.set(creationTimeKey, Long.toString(currentTime));
transaction.set(lastAccessTimeKey, Long.toString(currentTime));
transaction.set(expiresAtKey, Long.toString(expireAtTimeWithReserve));
transaction.set(timeoutKey, Integer.toString(maxInactiveInterval));