2018-11-20 02:01:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-11 03:35:47 +00:00
|
|
|
module Gitlab
|
|
|
|
module Redis
|
|
|
|
class SharedState < ::Gitlab::Redis::Wrapper
|
2019-08-31 19:25:25 +00:00
|
|
|
SESSION_NAMESPACE = 'session:gitlab'
|
|
|
|
USER_SESSIONS_NAMESPACE = 'session:user:gitlab'
|
|
|
|
USER_SESSIONS_LOOKUP_NAMESPACE = 'session:lookup:user:gitlab'
|
2020-08-28 09:10:32 +00:00
|
|
|
IP_SESSIONS_LOOKUP_NAMESPACE = 'session:lookup:ip:gitlab2'
|
2017-07-11 03:35:47 +00:00
|
|
|
|
2021-06-04 12:10:17 +00:00
|
|
|
private
|
|
|
|
|
|
|
|
def raw_config_hash
|
2021-06-09 06:10:29 +00:00
|
|
|
config = super
|
|
|
|
config[:url] = 'redis://localhost:6382' if config[:url].blank?
|
|
|
|
config
|
2017-07-11 03:35:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|