f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
10 lines
280 B
Ruby
10 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Redis
|
|
ForbiddenCommand = Class.new(StandardError)
|
|
|
|
def keys(*args)
|
|
raise ForbiddenCommand.new("Don't use `Redis#keys` as it iterates over all "\
|
|
"keys in redis. Use `Redis#scan_each` instead.")
|
|
end
|
|
end
|