Module: Couchbase::Operations::Delete
- Defined in:
- lib/couchbase/operations/delete.rb
Instance Method Summary collapse
- #async_delete(*args, &block) ⇒ Object
-
#delete(key, options = {}) ⇒ true, ...
Delete the specified key.
Instance Method Details
#async_delete(*args, &block) ⇒ Object
72 73 74 75 76 77 |
# File 'lib/couchbase/operations/delete.rb', line 72 def async_delete(*args, &block) key, cas, = (args) future = client.delete(key) register_future(future, { op: :delete }, &block) end |
#delete(key, options = {}) ⇒ true, ...
Delete the specified key
62 63 64 65 66 67 68 69 70 |
# File 'lib/couchbase/operations/delete.rb', line 62 def delete(*args) key, cas, = (args) if key.respond_to?(:to_ary) delete_multi(key, ) else delete_single(key, cas, ) end end |