2020-07-01 17:05:21 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Redis
|
|
|
|
module NamespaceExtensions
|
2023-08-22 07:31:40 +00:00
|
|
|
def exists?(...)
|
|
|
|
call_with_namespace('exists?', ...)
|
2020-07-01 17:05:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Redis::Namespace::COMMANDS['exists?'] = [:first]
|
|
|
|
Redis::Namespace.prepend(Redis::NamespaceExtensions)
|