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
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/couchbase/operations/delete.rb', line 45 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 |