Transaction transaction = jedis.multi();
transaction.rename(oldCreationTimeKey, newCreationTimeKey);
transaction.rename(oldLastAccessTimeKey, newLastAccessTimeKey);
transaction.rename(oldExpiresAtKey, newExpiresAtKey);
transaction.rename(oldTimeoutKey, newTimeoutKey);
if (attributeNames != null && !attributeNames.isEmpty()) {
for (String attributeName : attributeNames) {
String oldKey = RedisSessionKeys.getAttrKey(this.id, attributeName);
String newKey = RedisSessionKeys.getAttrKey(id, attributeName);