anmo 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,15 @@ module Anmo
52
52
 
53
53
  private
54
54
  def self.server
55
- @server ||= Dalli::Client.new "127.0.0.1:11211", {:namespace => Process.pid.to_s}
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
@@ -1,3 +1,3 @@
1
1
  module Anmo
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anmo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: