2019-07-25 05:27:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-16 09:38:01 +00:00
|
|
|
class Redis
|
|
|
|
ForbiddenCommand = Class.new(StandardError)
|
|
|
|
|
|
|
|
def keys(*args)
|
2021-05-04 15:10:36 +00:00
|
|
|
raise ForbiddenCommand, "Don't use `Redis#keys` as it iterates over all "\
|
|
|
|
"keys in redis. Use `Redis#scan_each` instead."
|
2017-10-16 09:38:01 +00:00
|
|
|
end
|
|
|
|
end
|