Class: Couchbase::Collection::ReplaceOptions
- Inherits:
-
Couchbase::CommonOptions
- Object
- Couchbase::CommonOptions
- Couchbase::Collection::ReplaceOptions
- Defined in:
- lib/couchbase/collection_options.rb
Instance Attribute Summary collapse
-
#cas ⇒ Integer
Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
-
#durability_level ⇒ :none, ...
Level of durability.
-
#expiry ⇒ Integer
Expiration time to associate with the document.
-
#transcoder ⇒ JsonTranscoder
Transcoder used for encoding.
Attributes inherited from Couchbase::CommonOptions
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize {|| ... } ⇒ ReplaceOptions
constructor
A new instance of ReplaceOptions.
Constructor Details
#initialize {|| ... } ⇒ ReplaceOptions
Returns a new instance of ReplaceOptions.
239 240 241 242 243 |
# File 'lib/couchbase/collection_options.rb', line 239 def initialize @transcoder = JsonTranscoder.new @durability_level = :none yield self if block_given? end |
Instance Attribute Details
#cas ⇒ Integer
Returns Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
233 234 235 |
# File 'lib/couchbase/collection_options.rb', line 233 def cas @cas end |
#durability_level ⇒ :none, ...
Returns level of durability.
236 237 238 |
# File 'lib/couchbase/collection_options.rb', line 236 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns expiration time to associate with the document.
227 228 229 |
# File 'lib/couchbase/collection_options.rb', line 227 def expiry @expiry end |
#transcoder ⇒ JsonTranscoder
Returns transcoder used for encoding.
230 231 232 |
# File 'lib/couchbase/collection_options.rb', line 230 def transcoder @transcoder end |