CryBase::CouchBase::Services::KV::Pool
Fixed-size pool of authenticated KV clients for concurrent fibers.
Constants
DEFAULT_SIZE = 10
Constructors
from_string(uri : String, username : String | Nil = nil, password : String | Nil = nil, bucket : String | Nil = nil, size : Int32 = DEFAULT_SIZE, connect_timeout : Time::Span = 5.seconds, *, vbucket_count : UInt16 | Nil = nil, discover_bucket_config : Bool = true, management_port : Int32 | Nil = nil, tls_verify : Bool | Nil = nil, tls_hostname : String | Nil = nil, tls_context : OpenSSL::SSL::Context::Client | Nil = nil) : Pool
Builds a KV endpoint from uri and opens a pool of authenticated clients for the first host in the connection string.
username, password, and bucket may be passed explicitly or
embedded as couchbase://user:pass@host/bucket. Query parameters
currently supported by this helper: tls_verify and tls_hostname.
pool = KV::Pool.from_string("couchbase://user:pass@node1/default")
new(endpoint : Endpoint, username : String, password : String, bucket : String, size : Int32 = DEFAULT_SIZE, connect_timeout : Time::Span = 5.seconds, *, tls_verify : Bool = true, tls_hostname : String | Nil = nil, tls_context : OpenSSL::SSL::Context::Client | Nil = nil, vbucket_count : UInt16 = Constants::VBUCKET_COUNT)
SourceInstance methods
bucket
Sourcecheckout
Sourceclose
Sourceclosed?
Sourcecollection
Sourcedecrement(*args, **kwargs)
Sourcedelete(*args, **kwargs)
Sourceendpoint
Sourceget(*args, **kwargs)
Sourceget_as(*args, **kwargs)
Sourceincrement(*args, **kwargs)
Sourcescope
Sourceset(*args, **kwargs)
Sourcesize
Sourcetouch(*args, **kwargs)
Sourcevbucket_count
Source