Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0
-
None
-
Patch Available
Description
When not performing an add or update to the cache, the body of the exchange should of no matter and should be nullable.
At the moment this is not possible when for example performing an operation such as get. It is now required to pass for example an empty string in the body of the exchange, which is kind of useless.
The attached patch implements the altered behaviour where the body may be nullable when not performing add or update. A CacheException will be thrown when the body is required for an operation but the content of the body is null.
The patch contains the patched CacheProducer and the tests in CacheProducerTest.