h2ocube_rails_cache 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bd39003bc3b240ac304a9c640f8fbcb750903dff2b3718e9310d5ea9ef2987c
4
- data.tar.gz: ff35f2d7b492455827e6220380e810d80fd66fb1d23547dad3bd67a7b12147f3
3
+ metadata.gz: 58e48beb82df56554899612c7e9b0afa22466a88bc102b225aaedadadfc8d845
4
+ data.tar.gz: ace1006ead48bc1f748e52826807ef5226ddd489bfdafb3a52bcb28968dab251
5
5
  SHA512:
6
- metadata.gz: 59ac8c4e333170c9f2e7f6118248983212bbd332f1ecec404bfbbb6a232bd6ce40661e8067aed134f27896e4313f151d8d70210fd7cc5be806266699b31d3619
7
- data.tar.gz: c02ccecd2de803d55a8ba31e59ea9b683a24dc6f7def8dd6da31db7ed65e6323db2f94632ffe13289d4ab1847a9f31e6de3de39aaed5768cfcb6062f954c9508
6
+ metadata.gz: 3bd1912071280d96a10437496da2b5f6502fca85c0136e498d0b04bdc118494465f8157a8c3ed9b3b9b5d62d79f9defaf0baa1c4c960241c62b70aac15ab9870
7
+ data.tar.gz: 92ec589347bfeb375e397e04969bd5b88631f77a2468f86c658e76c77a2c9a16b9f1751674504870dc6e844aa6f63dd123a0d8e860bd1d1d37206ceb48cc5514
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'h2ocube_rails_cache'
7
- gem.version = '0.3.2'
7
+ gem.version = '0.3.4'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
10
  gem.description = 'Just an redis cache.'
@@ -64,15 +64,11 @@ module ActiveSupport
64
64
  end
65
65
 
66
66
  def read_multi(*names)
67
- keys = names.map { |name| normalize_key(name) }
68
- values = @data.mget(*keys)
69
-
70
- names.zip(values).each_with_object({}) do |(name, value), results|
71
- if value
72
- entry = load_entry(value)
73
- results[name] = entry unless entry.nil?
74
- end
67
+ result = {}
68
+ names.each do |name|
69
+ result[name] = read name
75
70
  end
71
+ result
76
72
  end
77
73
 
78
74
  def write(key, entry, opts = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben