More fixes for action pack tests with Dalli.
This commit is contained in:
parent
dd62069991
commit
7bed3ab404
|
@ -1,15 +1,15 @@
|
||||||
require 'action_dispatch/middleware/session/abstract_store'
|
require 'action_dispatch/middleware/session/abstract_store'
|
||||||
require 'rack/session/memcache'
|
require 'rack/session/dalli'
|
||||||
|
|
||||||
module ActionDispatch
|
module ActionDispatch
|
||||||
module Session
|
module Session
|
||||||
class MemCacheStore < Rack::Session::Memcache
|
class MemCacheStore < Rack::Session::Dalli
|
||||||
include Compatibility
|
include Compatibility
|
||||||
include StaleSessionCheck
|
include StaleSessionCheck
|
||||||
include SessionObject
|
include SessionObject
|
||||||
|
|
||||||
def initialize(app, options = {})
|
def initialize(app, options = {})
|
||||||
require 'memcache'
|
require 'dalli'
|
||||||
options[:expire_after] ||= options[:expires]
|
options[:expire_after] ||= options[:expires]
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue