Class: Couchbase::Collection::RemoveOptions

Inherits:
Couchbase::CommonOptions show all
Defined in:
lib/couchbase/collection_options.rb

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]

183
184
185
186
# File 'lib/couchbase/collection_options.rb', line 183

def initialize
  @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


177
178
179
# File 'lib/couchbase/collection_options.rb', line 177

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


180
181
182
# File 'lib/couchbase/collection_options.rb', line 180

def durability_level
  @durability_level
end