Does ehcache need to be implemented for serialization?

For Ehcache, are there any restrictions on the value to which you want to add? Like the key, the value should also implement "serializable"

+4
source share
2 answers

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 .

+1

Ehcache :

  • - API, Element.getKey Element.getValue, , Serialiazable. :

    • Element.getObjectKey
    • Element.getObjectValue

    , , , .

  • -, . , , Java Serialization.
  • - , Java - Serialization.

- , Serializable.

+6

All Articles