module Merb::MemcacheStore

Public Instance Methods

delete_session(session_id) click to toggle source

Parameters

session_id<String>

ID of the session to delete.

:api: private

# File lib/merb-core/dispatch/session/memcached.rb, line 58
def delete_session(session_id)
  delete("session:#{session_id}")
end
retrieve_session(session_id) click to toggle source

Parameters

session_id<String>

ID of the session to retrieve.

Returns

ContainerSession

The session corresponding to the ID.

:api: private

# File lib/merb-core/dispatch/session/memcached.rb, line 41
def retrieve_session(session_id)
  get("session:#{session_id}")
end
store_session(session_id, data) click to toggle source

Parameters

session_id<String>

ID of the session to set.

data<ContainerSession>

The session to set.

:api: private

# File lib/merb-core/dispatch/session/memcached.rb, line 50
def store_session(session_id, data)
  set("session:#{session_id}", data)
end