ninjudd-record_cache 0.9.4 → 0.9.5
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 +1 -1
- data/lib/record_cache/index.rb +3 -2
- metadata +4 -3
data/VERSION.yml
CHANGED
data/lib/record_cache/index.rb
CHANGED
@@ -307,8 +307,9 @@ module RecordCache
|
|
307
307
|
|
308
308
|
def add_to_cache(model)
|
309
309
|
record = model_to_record(model)
|
310
|
-
|
311
|
-
|
310
|
+
return unless record
|
311
|
+
key = record[index_field].to_s
|
312
|
+
|
312
313
|
cache.in_namespace(namespace) do
|
313
314
|
cache.with_lock(key) do
|
314
315
|
now_and_later do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninjudd-record_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Balthrop
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- test/test_helper.rb
|
34
34
|
has_rdoc: true
|
35
35
|
homepage: http://github.com/ninjudd/record_cache
|
36
|
+
licenses:
|
36
37
|
post_install_message:
|
37
38
|
rdoc_options:
|
38
39
|
- --inline-source
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
requirements: []
|
55
56
|
|
56
57
|
rubyforge_project:
|
57
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.3.5
|
58
59
|
signing_key:
|
59
60
|
specification_version: 2
|
60
61
|
summary: Active Record caching and indexing in memcache. An alternative to cache_fu
|