Drop memcached and use dalli as the memcache client
This commit is contained in:
parent
42fa563e01
commit
255b0b9425
7 changed files with 10 additions and 40 deletions
|
@ -1,7 +1,7 @@
|
|||
if defined?(MEMCACHE_SERVERS)
|
||||
require "openid/store/memcache"
|
||||
|
||||
OpenIdAuthentication.store = OpenID::Store::Memcache.new(MemCache.new(:namespace => "rails", :string_return_types => true))
|
||||
OpenIdAuthentication.store = OpenID::Store::Memcache.new(Dalli::Client.new(MEMCACHE_SERVERS, :namespace => "rails"))
|
||||
else
|
||||
OpenIdAuthentication.store = :file
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue