tagged-cache 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/active_support/cache/tagged_store.rb +3 -3
- metadata +4 -4
data/History.txt
CHANGED
@@ -63,7 +63,7 @@ module ActiveSupport
|
|
63
63
|
instrument(:read_tags, keys) do
|
64
64
|
options = keys.extract_options!
|
65
65
|
keys = keys.map { |k| expanded_tag(k) }
|
66
|
-
tags = @tag_store.read_multi(*keys)
|
66
|
+
tags = @tag_store.read_multi(*(keys + [options.merge(:raw => true)]))
|
67
67
|
(keys - tags.keys).each do |unknown_tag|
|
68
68
|
tags[unknown_tag] = read_tag(unknown_tag)
|
69
69
|
end
|
@@ -148,12 +148,12 @@ module ActiveSupport
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def write_entry(key, entry, options)
|
151
|
-
depends = (options
|
151
|
+
depends = (options.delete(:depends) || []).uniq
|
152
152
|
unless depends.empty?
|
153
153
|
entry.extend(TaggedEntry)
|
154
154
|
entry.depends = read_tags(*depends)
|
155
155
|
end
|
156
|
-
@entity_store.send(:write_entry, key, entry, options
|
156
|
+
@entity_store.send(:write_entry, key, entry, options)
|
157
157
|
end
|
158
158
|
|
159
159
|
def delete_entry(key, options)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagged-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anton Ageev
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-14 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|