Class: Couchbase::Collection::RemoveOptions

Inherits:
Couchbase::CommonOptions show all
Defined in:
lib/couchbase/collection_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/collection_options.rb
more...

Instance Attribute Summary collapse

Attributes inherited from Couchbase::CommonOptions

#client_context, #parent_span, #retry_strategy, #timeout

Instance Method Summary collapse

Constructor Details

#initialize {|| ... } ⇒ RemoveOptions

Returns a new instance of RemoveOptions.

Yield Parameters:

[View source]

206
207
208
209
210
# File 'lib/couchbase/collection_options.rb', line 206

def initialize
  super
  @durability_level = :none
  yield self if block_given?
end

Instance Attribute Details

#casInteger

Returns Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.

Returns:

  • (Integer)

    Specifies a CAS value that will be taken into account on the server side for optimistic concurrency


200
201
202
# File 'lib/couchbase/collection_options.rb', line 200

def cas
  @cas
end

#durability_level:none, ...

Returns level of durability.

Returns:

  • (:none, :majority, :majority_and_persist_to_active, :persist_to_majority)

    level of durability


203
204
205
# File 'lib/couchbase/collection_options.rb', line 203

def durability_level
  @durability_level
end