volatile_counter_cache 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/volatile_counter_cache/class_methods.rb +1 -1
- data/lib/volatile_counter_cache/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb5bad380e1f57743bae564fa92b9c79261fe72e
|
4
|
+
data.tar.gz: 35b7b320691efec7aa80b4638bf4db04a4eaafbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e3406126a41570dd8541a2153e3ae8e97b781c114578669d5ac3e50232f3d76cda1caec64877dec2cb8a1d27d6ab7abcfd29cdd30fed28264bab820a2b23c5
|
7
|
+
data.tar.gz: 46edee5d9683ad85e9de065466446ed84cff30f9e1f480f3356988cb9a52d852b83c3f2cc0e0f29a341c1e7474b3f2589a80ba3a544599499165d64eaf60b82a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Provides volatile counter cache logic to ActiveRecord::Base.
|
|
3
3
|
|
4
4
|
## Usage
|
5
5
|
1. `favorites_count` tries to read counter cache from Rails.cache.
|
6
|
-
2. If there is no cache yet, it calls `favorites.
|
6
|
+
2. If there is no cache yet, it calls `favorites.size` and store the result.
|
7
7
|
3. When `favorite` is created or destroyed, the cache is purged.
|
8
8
|
|
9
9
|
```ruby
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volatile_counter_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|