ActionDispatch::Session::MemCacheStore

class ActionDispatch::Session::MemCacheStore

Parent:
Rack::Session::Dalli
Included modules:
ActionDispatch::Session::Compatibility, ActionDispatch::Session::StaleSessionCheck

A session store that uses MemCache to implement storage.

Options

  • expire_after - The length of time a session will be stored before automatically expiring.

Public Class Methods

new(app, options = {}) Show source
Calls superclass method ActionDispatch::Session::Compatibility.new
# File actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb, line 20
def initialize(app, options = {})
  options[:expire_after] ||= options[:expires]
  super
end

© 2004–2017 David Heinemeier Hansson
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部