debian-mirror-gitlab/spec/support/redis/redis_helpers.rb
2023-03-17 16:20:25 +05:30

9 lines
239 B
Ruby

# frozen_string_literal: true
module RedisHelpers
Gitlab::Redis::ALL_CLASSES.each do |instance_class|
define_method("redis_#{instance_class.store_name.underscore}_cleanup!") do
instance_class.with(&:flushdb)
end
end
end