Module: Couchbase::Operations::Delete
- Defined in:
- lib/couchbase/operations/delete.rb
Instance Method Summary collapse
-
#delete(key, options = {}) ⇒ true, ...
Delete the specified key.
Instance Method Details
#delete(key, options = {}) ⇒ true, ...
Delete the specified key
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/couchbase/operations/delete.rb', line 62 def delete(*args, &block) sync_block_error if !async? && block_given? key, = (args) key, cas = delete_args_parser(key) if key.respond_to?(:to_ary) delete_multi(key, ) else delete_single(key, cas, , &block) end end |