Get the document
Get the document
CB key
a Future of T (when get success, the gotten value can be null depends on the implement of CBReads[T].reads)
CBException(ERR_NOT_FOUND) when key not found, or other CBException
Bulk get documents
Bulk get documents
a Seq of CB keys
a Future of Seq of T (can be null depends on the implement of CBReads[T].reads)
when the underlying CouchbaseClient's method fail
java.util.NoSuchElementExceptioninsteads of CBException(ERR_NOT_FOUND) when some keys not found
Bulk get documents
Bulk get documents
a Seq of CB keys
a Future of Seq of Option[T]
when the underlying CouchbaseClient's method fail
try parse s (must be a string) to T
try parse s (must be a string) to T
the Object gotten from CB
the data object of type T
Set the document to CB
Set the document to CB
a Future of java.lang.Boolean
when the underlying CouchbaseClient's method fail
Bulk set documents
Bulk set documents
a Seq of CB keys
a Seq of data to store to CB. keys
and values
is mapped 1-1
a Future
when the underlying CouchbaseClient's method fail
This trait implement method CBReads.reads and CBWrites.writes by using play.api.libs.json.Format
type of the data class that we want to read from CB