debian-mirror-gitlab/lib/gitlab/redis/sessions.rb
2022-03-02 08:16:31 +05:30

18 lines
533 B
Ruby

# frozen_string_literal: true
module Gitlab
module Redis
class Sessions < ::Gitlab::Redis::Wrapper
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'
# The data we store on Sessions used to be stored on SharedState.
def self.config_fallback
SharedState
end
end
end
end