Sha256: 9a762099560c28d418e55b35565577d85445b6f4e37ca9dc45283386610cf328

Contents?: true

Size: 869 Bytes

Versions: 20

Compression:

Stored size: 869 Bytes

Contents

# frozen_string_literal: true

# :markup: markdown

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
    # *   `expire_after`  - 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

20 entries across 20 versions & 2 rubygems

Version Path
actionpack-8.0.0 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-8.0.0.rc2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.1.2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-8.0.0.rc1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.1.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-8.0.0.beta1 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha9 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha8 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha7 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha4 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha3 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha2 lib/action_dispatch/middleware/session/mem_cache_store.rb
omg-actionpack-8.0.0.alpha1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.0 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.0.rc1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.0.beta3 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.0.beta2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.2.0.beta1 lib/action_dispatch/middleware/session/mem_cache_store.rb