Sha256: 55e184328ba111ce417a7451e885c7940c1a8d60e106d7148ca08401b3828978
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
module Zetto::Storage::Session class FindBySession def initialize(session_id) @redis = Zetto::Storage::Connect::RedisSingelton.get @session_id = session_id end def execute begin key = "session:" + @session_id.to_s data = {} data = @redis.hgetall(key) data['time_live_s'] = @redis.ttl(key) data["session_id"] = @session_id.to_s return Zetto::Storage::Session::Data::Response.new(data) rescue Exception => e Zetto::Services::Info.error_message I18n.t('exseptions.unknown_error', argument: 'Zetto::Storage::Session::FindBySession', current_method: __method__), e nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zetto-2.2.0 | lib/zetto/storage/session/find_by_session.rb |