Class: RedisSessionRetrieve::Fetcher
- Inherits:
-
Object
- Object
- RedisSessionRetrieve::Fetcher
- Defined in:
- lib/redis-session-retrieve/fetcher.rb
Class Attribute Summary collapse
-
.connection ⇒ Object
Returns the value of attribute connection.
Class Method Summary collapse
Class Attribute Details
.connection ⇒ Object
Returns the value of attribute connection.
8 9 10 |
# File 'lib/redis-session-retrieve/fetcher.rb', line 8 def connection @connection end |
Class Method Details
.find_by_id(session_id) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/redis-session-retrieve/fetcher.rb', line 13 def find_by_id session_id session = nil ActiveSupport::Notifications.instrument 'redis-session-retrieve.session_lookup',:session_id => session_id do session = @connection.get session_id end if session.nil? return nil else return Serializer.deserialize session end end |
.initialize ⇒ Object
10 11 |
# File 'lib/redis-session-retrieve/fetcher.rb', line 10 def initialize end |