CryBase::CouchBase::Services::KV::Constants
Constants
AGENT = "crybase"
User-agent string sent in the HELLO request body.
COUNTER_EXTRAS_SIZE = 20
Fixed-width extras size for KV counter operations.
DEFAULT_COLLECTION = "_default"
DEFAULT_COLLECTION_ID = 0_u32
DEFAULT_SCOPE = "_default"
EXPIRY_EXTRAS_SIZE = 4
Fixed-width extras size for KV expiration operations.
FEATURE_COLLECTIONS = 18_u16
HELLO feature code that opts the connection into collection-aware document keys.
FEATURE_SELECT_BUCKET = 8_u16
HELLO feature code that opts the connection into bucket selection. Sent during the handshake so the server accepts SELECT_BUCKET.
HEADER_SIZE = 24
Fixed-width header size in bytes for both requests and responses.
REQUEST_MAGIC = 128_u8
Binary-protocol magic byte indicating an outbound (request) packet.
RESPONSE_MAGIC = 129_u8
Binary-protocol magic byte indicating an inbound (response) packet.
VBUCKET_COUNT = 1024_u16
Default number of vbuckets used when bucket config is not loaded.