You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
276 B

  1. # frozen_string_literal: true
  2. class Redis
  3. module NamespaceExtensions
  4. def exists?(*args, &block)
  5. call_with_namespace('exists?', *args, &block)
  6. end
  7. end
  8. end
  9. Redis::Namespace::COMMANDS['exists?'] = [:first]
  10. Redis::Namespace.prepend(Redis::NamespaceExtensions)