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

Version Path
actionpack-7.1.5 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.4.2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.4.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.4 lib/action_dispatch/middleware/session/mem_cache_store.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_dispatch/middleware/session/mem_cache_store.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actionpack-7.1.3.4/lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.3.4 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.3.2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.3.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.3 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.0 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.0.rc2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.0.rc1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.1.0.beta1 lib/action_dispatch/middleware/session/mem_cache_store.rb