fastentry 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/app/controllers/fastentry/dashboard_controller.rb +5 -1
- data/lib/fastentry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8da465da7092111154500ccd3ec88eae4eb8461b014c90d3870b7b2dee883f7a
|
4
|
+
data.tar.gz: 312567bb360f73eaeb91ad50e62a200c87aca4c4fa1a48115cf89f3494c4fd0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d067b2d847ad674e4ebf8a4fba4dcadd0d4f2a06ccade434b2df4d2673c379f37cbb1661c611a23bca55fb74af2c32ba159cff8281705008a9594a2a58851868
|
7
|
+
data.tar.gz: c281a5344b1a81ea8f9782bd0968f9ad970021d8362ee40f9c47ee04989563c681cf6a2d52070599ffcde23d0b1f9876bdec9f173d9ef10f9a9d8782206a339b
|
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# FastEntry
|
2
2
|
Cache management for Rails applications.
|
3
3
|
|
4
|
-
|
4
|
+
> There are only two hard things in Computer Science: cache invalidation and naming things.
|
5
|
+
> -- Phil Karlton
|
6
|
+
|
7
|
+
FastEntry helps with the first. It comes with a web interface that can display the current state of your cache usage. Use it to view cache keys, inspect details or invalidate cached information.
|
5
8
|
|
6
9
|
![](https://user-images.githubusercontent.com/407470/52439845-d8ecff80-2b1c-11e9-8cdb-8c2323585583.png)
|
7
10
|
|
@@ -22,9 +22,13 @@ module Fastentry
|
|
22
22
|
expiration_date = nil
|
23
23
|
end
|
24
24
|
|
25
|
+
# Replaced call of value because of https://github.com/redis-store/redis-store/issues/96
|
26
|
+
# value = Rails.cache.read(key.to_s)
|
27
|
+
value = Rails.cache.fetch(key.to_s, raw: true) { 0 }
|
28
|
+
|
25
29
|
@cached << {
|
26
30
|
cache_key: key,
|
27
|
-
cache_value:
|
31
|
+
cache_value: value,
|
28
32
|
expiration: (Time.at(expiration_date) if expiration_date.present?)
|
29
33
|
}
|
30
34
|
end
|
data/lib/fastentry/version.rb
CHANGED