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