Product Documentation : Ehcache Developer Guide : Transaction Support : Requirements for Transactional Caches
Requirements for Transactional Caches
The objects you store in your transactional cache must:
*Implement java.io.Serializable—This is required to store cached objects when the cache is distributed in a Terracotta cluster, and it is also required by the copy-on-read / copy-on-write mechanism used to implement isolation.
*Override equals and hashcode — These must be overridden because the transactional stores rely on element value comparison. See: ElementValueComparator and the elementValueComparator configuration setting.
Copyright © 2010-2017 Software AG, Darmstadt, Germany.

Product Logo |   Feedback