Module: RedisSessionRetrieve

Defined in:
lib/redis-session-retrieve.rb,
lib/redis-session-retrieve/fetcher.rb,
lib/redis-session-retrieve/version.rb,
lib/redis-session-retrieve/serializer.rb

Defined Under Namespace

Classes: Fetcher, Serializer

Constant Summary collapse

VERSION =
"1.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.connectionObject

Returns the value of attribute connection.



9
10
11
# File 'lib/redis-session-retrieve.rb', line 9

def connection
  @connection
end

Class Method Details

.find_by_id(session_id) ⇒ Object



11
12
13
14
# File 'lib/redis-session-retrieve.rb', line 11

def find_by_id session_id
  RedisSessionRetrieve::Fetcher.connection = self.connection
  RedisSessionRetrieve::Fetcher.find_by_id session_id
end