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