tokyo_cache_cow 0.0.8 → 0.0.9

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.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 8
2
+ :patch: 9
3
3
  :major: 0
4
4
  :build:
5
5
  :minor: 0
@@ -50,6 +50,10 @@ class TokyoCacheCow
50
50
  numeric_keys.map{|ak| get(ak)}.map{|v| Integer(unmarshal(v[:value])) rescue nil}.compact
51
51
  end
52
52
 
53
+ def get_match_list(match)
54
+ marshal(get_match(match).join(' '))
55
+ end
56
+
53
57
  end
54
58
  end
55
59
  end
@@ -20,7 +20,7 @@ class TokyoCacheCow
20
20
 
21
21
  def generate_data_hash(value, options)
22
22
  {
23
- :value => value,
23
+ :value => marshal(value),
24
24
  :expires => process_time(options[:expires] || 0),
25
25
  :flags => options[:flags] || 0
26
26
  }
@@ -103,7 +103,7 @@ class TokyoCacheCow
103
103
  next unless validate_key(k)
104
104
  if special_match_char && k.index(special_match_char) == 0
105
105
  k.slice!(0, special_match_char.size)
106
- value = @cache.get_match(k).join(' ')
106
+ value = @cache.get_match_list(k)
107
107
  send_data(GetValueReply % [k, "0", value.size])
108
108
  send_data(value)
109
109
  send_data(Terminator)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Hull