A cache event.
NOTE: Although Cache does not support
null as a valid value we are using it in
getValue and
getOldValue as a way to represent missing value. We have the following reasons for this:
- Firstly, some events inherently do not have value or old value. For instance addition does not have
an old value as the corresponding element was just added to the cache
- Secondly, in some implementations the information for the value and/or old value is not available at all.
- Thirdly, the listener can be added as a valueless listener