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