debian-mirror-gitlab/lib/gitlab/redis/cache.rb
2021-09-04 01:27:46 +05:30

17 lines
321 B
Ruby

# frozen_string_literal: true
module Gitlab
module Redis
class Cache < ::Gitlab::Redis::Wrapper
CACHE_NAMESPACE = 'cache:gitlab'
private
def raw_config_hash
config = super
config[:url] = 'redis://localhost:6380' if config[:url].blank?
config
end
end
end
end