Sha256: 06c6c430067b14851467d05efeade39ebbe2b2878d61e5c8c544f794dbf72c28

Contents?: true

Size: 793 Bytes

Versions: 210

Compression:

Stored size: 793 Bytes

Contents

# frozen_string_literal: true

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

210 entries across 198 versions & 12 rubygems

Version Path
actionpack-7.0.8.6 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-6.1.7.10 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-6.1.7.9 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.0.8.5 lib/action_dispatch/middleware/session/mem_cache_store.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_dispatch/middleware/session/mem_cache_store.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/session/mem_cache_store.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/session/mem_cache_store.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.0.8.4 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-6.1.7.8 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.0.8.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-6.1.7.7 lib/action_dispatch/middleware/session/mem_cache_store.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/session/mem_cache_store.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/session/mem_cache_store.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.0.8 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.0.7.2 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-6.1.7.6 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-7.0.7.1 lib/action_dispatch/middleware/session/mem_cache_store.rb
actionpack-6.1.7.5 lib/action_dispatch/middleware/session/mem_cache_store.rb