JCache only supports SerializableDocument

The JCache implementation for Couchbase (Developer Preview 2) seems to be limited to insert/upsert of SerializableDocument, which causes binary to go into the DB. Is it possible to use the JCache implementation and insert a RawJsonDocument?

This might be doable by forking the https://github.com/couchbaselabs/couchbase-java-cache repo, but is there an easier way or workaround?

Hi rsands,

Some kind of code change to would indeed be necessary. We’d definitely be open to a pull request that added JSON serialization as a configurable option.