Sha256: ba731582a39a30d718374154e80a6feac07b8cc37966892fb9bd68854c3dc306
Contents?: true
Size: 762 Bytes
Versions: 35
Compression:
Stored size: 762 Bytes
Contents
require 'action_dispatch/middleware/session/abstract_store' begin require 'rack/session/dalli' rescue LoadError => e $stderr.puts "You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install" raise e end module ActionDispatch module Session # A session store that uses MemCache to implement storage. # # ==== Options # * <tt>expire_after</tt> - The length of time a session will be stored before automatically expiring. class MemCacheStore < Rack::Session::Dalli include Compatibility include StaleSessionCheck include SessionObject def initialize(app, options = {}) options[:expire_after] ||= options[:expires] super end end end end
Version data entries
35 entries across 35 versions & 4 rubygems