mirror of https://github.com/mastodon/mastodon
Remove `redis-namespace` gem (#34742)
parent
3a5e310a6d
commit
f1a6f4333a
@ -1,16 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Redis
|
||||
module NamespaceExtensions
|
||||
def exists?(...)
|
||||
call_with_namespace('exists?', ...)
|
||||
end
|
||||
|
||||
def with
|
||||
yield self
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Redis::Namespace::COMMANDS['exists?'] = [:first]
|
||||
Redis::Namespace.prepend(Redis::NamespaceExtensions)
|
||||
Loading…
Reference in New Issue