anmo 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/anmo/application.rb +9 -1
- data/lib/anmo/version.rb +1 -1
- metadata +1 -1
data/lib/anmo/application.rb
CHANGED
@@ -52,7 +52,15 @@ module Anmo
|
|
52
52
|
|
53
53
|
private
|
54
54
|
def self.server
|
55
|
-
@server ||=
|
55
|
+
@server ||= if ENV["MEMCACHE_SERVERS"]
|
56
|
+
Dalli::Client.new(ENV["MEMCACHE_SERVERS"], {
|
57
|
+
:username => ENV["MEMCACHE_USERNAME"],
|
58
|
+
:password => ENV["MEMCACHE_PASSWORD"],
|
59
|
+
:namespace => Process.pid.to_s
|
60
|
+
})
|
61
|
+
else
|
62
|
+
Dalli::Client.new "127.0.0.1:11211", {:namespace => Process.pid.to_s}
|
63
|
+
end
|
56
64
|
end
|
57
65
|
end
|
58
66
|
|
data/lib/anmo/version.rb
CHANGED