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