Drop memcached and use dalli as the memcache client

This commit is contained in:
Tom Hughes 2013-09-22 15:57:22 +01:00
parent 42fa563e01
commit 255b0b9425
7 changed files with 10 additions and 40 deletions

View file

@ -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