Module: Merb::MemcacheStore

Included in:
MemCache, Memcached
Defined in:
merb-core/lib/merb-core/dispatch/session/memcached.rb

Instance Method Summary collapse

Instance Method Details

#delete_session(session_id) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



48
49
50
# File 'merb-core/lib/merb-core/dispatch/session/memcached.rb', line 48

def delete_session(session_id)
  delete("session:#{session_id}")
end

#retrieve_session(session_id) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



38
39
40
# File 'merb-core/lib/merb-core/dispatch/session/memcached.rb', line 38

def retrieve_session(session_id)
  get("session:#{session_id}")
end

#store_session(session_id, data) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



43
44
45
# File 'merb-core/lib/merb-core/dispatch/session/memcached.rb', line 43

def store_session(session_id, data)
  set("session:#{session_id}", data)
end