Module: Couchbase
- Defined in:
- lib/couchbase.rb,
lib/couchbase/bucket.rb,
lib/couchbase/version.rb,
ext/couchbase_ext/couchbase_ext.c
Overview
Couchbase ruby client
Defined Under Namespace
Modules: Error Classes: Bucket, Result
Constant Summary
- VERSION =
"1.1.5"
Class Attribute Summary (collapse)
-
+ (Hash, String) connection_options
Default connection options.
Class Method Summary (collapse)
-
+ (Bucket) bucket
The connection instance for current thread.
-
+ (Bucket) bucket=(connection)
Set a connection instance for current thread.
-
+ (Bucket) connect(*options)
(also: new)
The method connect initializes new Bucket instance with all arguments passed.
Class Attribute Details
+ (Hash, String) connection_options
Default connection options
55 56 57 |
# File 'lib/couchbase.rb', line 55 def end |
Class Method Details
+ (Bucket) bucket
The connection instance for current thread
68 69 70 |
# File 'lib/couchbase.rb', line 68 def bucket thread_storage[:bucket] ||= connect(*) end |
+ (Bucket) bucket=(connection)
Set a connection instance for current thread
75 76 77 |
# File 'lib/couchbase.rb', line 75 def bucket=(connection) thread_storage[:bucket] = connection end |
+ (Bucket) connect(*options) Also known as: new
The method connect initializes new Bucket instance with all arguments passed.
43 44 45 |
# File 'lib/couchbase.rb', line 43 def connect(*) Bucket.new(*) end |