simple_cache_rs 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,11 @@ class SimpleCache::MemcachedStore
6
6
 
7
7
  uri = URI.parse(url)
8
8
 
9
- @dc = Dalli::Client.new("#{uri.host}:#{uri.port}", :namespace => uri.path || "simple_cache", :compress => true)
9
+ @dc = Dalli::Client.new "#{uri.host}:#{uri.port}",
10
+ :namespace => (uri.path == "/" || uri.path == "" ? "simple_cache" : uri.path),
11
+ :compress => true,
12
+ :username => uri.user,
13
+ :password => uri.password
10
14
  end
11
15
 
12
16
  def fetch(key, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_cache_rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -4118416796349753026
164
+ hash: 2138346669409485739
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements:
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: -4118416796349753026
173
+ hash: 2138346669409485739
174
174
  requirements: []
175
175
  rubyforge_project:
176
176
  rubygems_version: 1.8.25