Sha256: a4c76406b60215f571aee801f985c0adeae358cce02d1a8eedebf98cbf5fb562
Contents?: true
Size: 838 Bytes
Versions: 16
Compression:
Stored size: 838 Bytes
Contents
# frozen_string_literal: true require "action_dispatch/middleware/session/abstract_store" begin require "rack/session/dalli" rescue LoadError => e warn "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 # = Action Dispatch Session \MemCacheStore # # 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
16 entries across 16 versions & 3 rubygems