CB key
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
Delete the document has the specified key
Delete the document has the specified key
a Future of java.lang.Boolean
when the underlying CouchbaseClient's method fail
Get the document has the specified key
Get the document has the specified 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
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 has the specified key
Set the document has the specified key
a Future of java.lang.Boolean
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
This trait mix ReadsKey0 with WritesKey0
type of the data class that we want to read from and write to CB