Class: CGI::Session::MemCacheStore

Inherits:
Object
  • Object
show all
Defined in:
lib/am_memcache_store.rb

Instance Method Summary collapse

Instance Method Details

#restoreObject



3
4
5
6
7
8
9
10
11
# File 'lib/am_memcache_store.rb', line 3

def restore
  begin
    @session_data = @cache[@session_key]
    @session_data = {} if @session_data == :MemCache_no_such_entry
  rescue
    @session_data = {}
  end
  @session_data
end