identity_cache 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -0
- data/.travis.yml +0 -4
- data/README.md +5 -1
- data/identity_cache.gemspec +5 -5
- data/lib/identity_cache/cache_fetcher.rb +84 -0
- data/lib/identity_cache/memoized_cache_proxy.rb +53 -47
- data/lib/identity_cache/query_api.rb +1 -16
- data/lib/identity_cache/version.rb +2 -2
- data/lib/identity_cache.rb +17 -34
- data/performance/cache_runner.rb +61 -8
- data/shipit.rubygems.yml +1 -0
- data/test/attribute_cache_test.rb +13 -6
- data/test/denormalized_has_many_test.rb +1 -1
- data/test/denormalized_has_one_test.rb +7 -5
- data/test/fetch_multi_test.rb +39 -15
- data/test/fetch_test.rb +66 -26
- data/test/fixtures/serialized_record +0 -0
- data/test/helpers/update_serialization_format.rb +6 -8
- data/test/index_cache_test.rb +13 -13
- data/test/memoized_cache_proxy_test.rb +29 -33
- data/test/test_helper.rb +7 -10
- data.tar.gz.sig +1 -0
- metadata +59 -6
- metadata.gz.sig +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: identity_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Camilo Lopez
|
@@ -10,10 +10,33 @@ authors:
|
|
10
10
|
- Dylan Smith
|
11
11
|
- Tobias Lutke
|
12
12
|
- Arthur Neves
|
13
|
+
- Francis Bogsanyi
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
|
-
cert_chain:
|
16
|
-
|
16
|
+
cert_chain:
|
17
|
+
- |
|
18
|
+
-----BEGIN CERTIFICATE-----
|
19
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
|
20
|
+
bnMxFzAVBgoJkiaJk/IsZAEZFg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HJN7wx5cugMEyroKITG5gL0Nxtu21qtOlHX4Hc4KdE2JqzCPOsS4zsZGhgwhPs
|
36
|
+
fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
|
37
|
+
TConQSX2BnZdhIEYW+cKzEC/bLc=
|
38
|
+
-----END CERTIFICATE-----
|
39
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
17
40
|
dependencies:
|
18
41
|
- !ruby/object:Gem::Dependency
|
19
42
|
name: ar_transaction_changes
|
@@ -43,20 +66,34 @@ dependencies:
|
|
43
66
|
- - ">="
|
44
67
|
- !ruby/object:Gem::Version
|
45
68
|
version: '3.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: memcached
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.8.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.8.0
|
46
83
|
- !ruby/object:Gem::Dependency
|
47
84
|
name: memcached_store
|
48
85
|
requirement: !ruby/object:Gem::Requirement
|
49
86
|
requirements:
|
50
87
|
- - "~>"
|
51
88
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.
|
89
|
+
version: 0.12.5
|
53
90
|
type: :development
|
54
91
|
prerelease: false
|
55
92
|
version_requirements: !ruby/object:Gem::Requirement
|
56
93
|
requirements:
|
57
94
|
- - "~>"
|
58
95
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
96
|
+
version: 0.12.5
|
60
97
|
- !ruby/object:Gem::Dependency
|
61
98
|
name: rake
|
62
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,6 +136,20 @@ dependencies:
|
|
99
136
|
- - ">="
|
100
137
|
- !ruby/object:Gem::Version
|
101
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: minitest
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.11.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.11.0
|
102
153
|
- !ruby/object:Gem::Dependency
|
103
154
|
name: cityhash
|
104
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +212,7 @@ files:
|
|
161
212
|
- identity_cache.gemspec
|
162
213
|
- lib/identity_cache.rb
|
163
214
|
- lib/identity_cache/belongs_to_caching.rb
|
215
|
+
- lib/identity_cache/cache_fetcher.rb
|
164
216
|
- lib/identity_cache/cache_hash.rb
|
165
217
|
- lib/identity_cache/cache_invalidation.rb
|
166
218
|
- lib/identity_cache/cache_key_generation.rb
|
@@ -173,6 +225,7 @@ files:
|
|
173
225
|
- performance/cpu.rb
|
174
226
|
- performance/externals.rb
|
175
227
|
- performance/profile.rb
|
228
|
+
- shipit.rubygems.yml
|
176
229
|
- test/attribute_cache_test.rb
|
177
230
|
- test/cache_fetch_includes_test.rb
|
178
231
|
- test/cache_hash_test.rb
|
@@ -217,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
270
|
version: '0'
|
218
271
|
requirements: []
|
219
272
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.2.
|
273
|
+
rubygems_version: 2.2.0
|
221
274
|
signing_key:
|
222
275
|
specification_version: 4
|
223
276
|
summary: IdentityCache lets you specify how you want to cache your model objects,
|
metadata.gz.sig
ADDED
Binary file
|