}
}
}
Object encodedKey = codec.encodeKey(keyData.getKey());
Object encodedOldValue = codec.encodeValue(oldValue);
Object encodedNewValue = codec.encodeValue(newValue);
if (expires == null) {
if(oldValue!=null) {
cache.replace(encodedKey, encodedOldValue, encodedNewValue);
} else {
cache.replace(encodedKey, encodedNewValue);