For Ehcache, are there any restrictions on the value to which you want to add? Like the key, the value should also implement "serializable"
The objects used in Ehcache need to implement Serializable if you need to save the cache to disk or use cache replication
Thus, the implementation of Serializable for values is optional.
@Louis , , , Java .
Ehcache :
- API, Element.getKey Element.getValue, , Serialiazable. :
Element.getKey
Element.getValue
Serialiazable
Element.getObjectKey
Element.getObjectValue
, , , .
Serialization
- , Serializable.
Serializable