Welcome to mirror list, hosted at ThFree Co, Russian Federation.

redis_without_keys.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e030f1028f7bb9df8ecb0f3e9663abdda5a8fa6e (plain)
1
2
3
4
5
6
7
8
9
10
# 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