Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
set_session(env, sid, session, options)
public
Set a session in the cache.
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 26
def set_session(env, sid, session, options)
key = cache_key(sid)
if session
@cache.write(key, session, :expires_in => options[:expire_after])
else
@cache.delete(key)
end
sid
end