2021-10-15 11:10:09 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Redis
|
|
|
|
class Sessions < ::Gitlab::Redis::Wrapper
|
2021-11-24 13:14:31 -05:00
|
|
|
SESSION_NAMESPACE = 'session:gitlab'
|
|
|
|
USER_SESSIONS_NAMESPACE = 'session:user:gitlab'
|
|
|
|
USER_SESSIONS_LOOKUP_NAMESPACE = 'session:lookup:user:gitlab'
|
|
|
|
IP_SESSIONS_LOOKUP_NAMESPACE = 'session:lookup:ip:gitlab2'
|
|
|
|
OTP_SESSIONS_NAMESPACE = 'session:otp'
|
|
|
|
|
2022-01-14 07:18:55 -05:00
|
|
|
# The data we store on Sessions used to be stored on SharedState.
|
|
|
|
def self.config_fallback
|
|
|
|
SharedState
|
2021-10-15 11:10:09 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|