2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
module Gitlab
|
|
|
|
module Redis
|
|
|
|
class SharedState < ::Gitlab::Redis::Wrapper
|
2019-12-04 20:38:33 +05:30
|
|
|
SESSION_NAMESPACE = 'session:gitlab'
|
|
|
|
USER_SESSIONS_NAMESPACE = 'session:user:gitlab'
|
|
|
|
USER_SESSIONS_LOOKUP_NAMESPACE = 'session:lookup:user:gitlab'
|
2020-11-24 15:15:51 +05:30
|
|
|
IP_SESSIONS_LOOKUP_NAMESPACE = 'session:lookup:ip:gitlab2'
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
private
|
2020-06-23 00:09:42 +05:30
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
def raw_config_hash
|
|
|
|
config = super
|
|
|
|
config[:url] = 'redis://localhost:6382' if config[:url].blank?
|
|
|
|
config
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|