Add a toString() implementation to the READ_WRITE Ehcache Item object
Description
All cache concurrency strategies, except for READ_WRITE, use the StandardCacheEntryImpl object type for storing a second-level cache entry value. This class has a toString() representation, which makes it easy to grasp the entity disassembled state.
For READ_WRITE, the AbstractReadWriteAccessStrategy.Item object is used, which doesn't have a toString() representation.
For the design to be consistent, it would be good to implement toString() for AbstractReadWriteAccessStrategy.Item too.
Activity
Show:
Vlad Mihalcea May 25, 2016 at 3:09 PM
That would be great. It really helps debugging.
Louis Jacomet May 25, 2016 at 2:58 PM
Taking the liberty of doing a similar change in the context of so that the new JCache provider does not suffer from a similar problem.
All cache concurrency strategies, except for READ_WRITE, use the
StandardCacheEntryImpl
object type for storing a second-level cache entry value. This class has atoString()
representation, which makes it easy to grasp the entity disassembled state.For READ_WRITE, the
AbstractReadWriteAccessStrategy.Item
object is used, which doesn't have atoString()
representation.For the design to be consistent, it would be good to implement
toString()
forAbstractReadWriteAccessStrategy.Item
too.