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