switch to dalli for memcache adapter, related to #1906

This commit is contained in:
r888888888
2013-08-01 15:02:45 -07:00
parent fa1b65a859
commit 60b214f4d0
7 changed files with 41 additions and 51 deletions

View File

@@ -0,0 +1,3 @@
unless defined?(MEMCACHE)
MEMCACHE = Dalli::Client.new(Danbooru.config.memcached_servers, :namespace => Danbooru.config.app_name.gsub(/[^A-Za-z0-9]/, "_"))
end