StrCao

abstract
class StrCao[T](val bucket: ScalaBucket) extends CaoBase[T, String, CompatStringDocument] with StrCaoTrait[T]

Base class for Couchbase Access Object to access StringDocument that can be decode/encode to/from the T type

trait StrCaoTrait[T]
class CaoBase[T, String, CompatStringDocument]
trait CaoTrait[T, String, String, CompatStringDocument]
class Object
trait Matchable
class Any
class StrCao2[T, A, B]

Type members

Inherited types

final
type DocumentCAS = (T, Long)
Inherited from
CaoTrait

Value members

Inherited methods

final
def change(a: String)(f: Option[T] => T): Future[CompatStringDocument]
Inherited from
CaoTrait
final
def changeBulk(aa: Seq[String])(f: Option[T] => T): Future[Seq[CompatStringDocument]]
Inherited from
CaoTrait
protected
def createDoc(id: String, expiry: Int, content: String, cas: Long): CompatStringDocument
protected
def expiry(): Int
Inherited from
CaoTrait
final
def flatChange(a: String)(f: Option[T] => Future[T]): Future[CompatStringDocument]
Inherited from
CaoTrait
final
def flatChangeBulk(aa: Seq[String])(f: Option[T] => Future[T]): Future[Seq[CompatStringDocument]]
Inherited from
CaoTrait
final
def get(id: String): Future[T]
Value Params
id

document id

Inherited from
CaoBase
final
def getBulk(aa: Seq[String]): Future[Seq[T]]
Inherited from
CaoTrait
final
def getBulkWithCAS(aa: Seq[String]): Future[Seq[DocumentCAS]]
Inherited from
CaoTrait
final
def getOrElse(a: String)(default: => T): Future[T]
Value Params
a

document id or the param of WithCaoKey1.key(a: A)

Inherited from
CaoTrait
final
def getOrElseWithCAS(a: String)(default: => T): Future[DocumentCAS]
Value Params
a

document id or the param of WithCaoKey1.key(a: A)

Inherited from
CaoTrait
final
def getOrUpdate(a: String)(default: => T): Future[T]
Value Params
a

document id or the param of WithCaoKey1.key(a: A)

Inherited from
CaoTrait
final
def getWithCAS(id: String): Future[DocumentCAS]
Value Params
id

document id

Inherited from
CaoBase
protected
def reads(u: String): T
Inherited from
CaoTrait
final
def remove(id: String): Future[CompatStringDocument]
Value Params
id

document id

Inherited from
CaoBase
final
def set(id: String, t: T): Future[CompatStringDocument]
Value Params
id

document id

t

the object of your own type T ex T=case class User(...) to be upsert into cb server

Inherited from
CaoBase
final
def setBulk(aa: Seq[String], tt: Seq[T]): Future[Seq[CompatStringDocument]]
Inherited from
CaoTrait
final
def setT(a: String, t: T): Future[T]

convenient method. = set(..).map(_ => t)

convenient method. = set(..).map(_ => t)

Inherited from
CaoTrait
final
def update(id: String, t: T, cas: Long): Future[CompatStringDocument]
Value Params
id

document id

t

the object of your own type T ex T=case class User(...) to be upsert into cb server

Inherited from
CaoBase
protected
def writes(t: T): String
Inherited from
CaoTrait