read an Object (gotten from CB) to the data object of type T
read an Object (gotten from CB) to the data object of type T
the Object gotten from CB
the data object of type T
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
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
A convenient trait that mix CBReads & CBWrites
type of the data class that we want to read from/ write to CB