class
CryBase::CouchBase::Services::KV::CollectionContext(Target)
- CryBase::CouchBase::Services::KV::CollectionContext(Target)
- Reference
- Object
Defined in:
crybase/couchbase/services/kv/collection_context.crConstructors
Instance Method Summary
- #collection : String
- #collection_id : UInt32
- #decrement(key : String, delta : UInt64 = 1_u64, initial : UInt64 = 0_u64, expiry : UInt32 = 0_u32) : UInt64
- #delete(key : String) : Nil
- #get(key : String, expiry : UInt32 | Nil = nil) : Bytes
- #get(key : String, type : T.class, expiry : UInt32 | Nil = nil) : T forall T
- #get_as(key : String, type : T.class, expiry : UInt32 | Nil = nil) : T forall T
- #increment(key : String, delta : UInt64 = 1_u64, initial : UInt64 = 0_u64, expiry : UInt32 = 0_u32) : UInt64
- #scope : String
- #set(key : String, value : String | Bytes, expiry : UInt32 = 0_u32) : UInt64
- #set(key : String, value : T, expiry : UInt32 = 0_u32) : UInt64 forall T
- #target : Target
- #touch(key : String, expiry : UInt32) : UInt64
Constructor Detail
Instance Method Detail
def decrement(key : String, delta : UInt64 = 1_u64, initial : UInt64 = 0_u64, expiry : UInt32 = 0_u32) : UInt64
#
def increment(key : String, delta : UInt64 = 1_u64, initial : UInt64 = 0_u64, expiry : UInt32 = 0_u32) : UInt64
#