fastentry 0.1.3 → 0.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f27ca9619d62710c4732d4e63e1ba78ff5ec2afb34011410dfa584ae6873f46
4
- data.tar.gz: ca201d30c18a9120c40ee1b952bd8139585ef23ef094182b56026f8c6f4ea511
3
+ metadata.gz: 8da465da7092111154500ccd3ec88eae4eb8461b014c90d3870b7b2dee883f7a
4
+ data.tar.gz: 312567bb360f73eaeb91ad50e62a200c87aca4c4fa1a48115cf89f3494c4fd0a
5
5
  SHA512:
6
- metadata.gz: 94f81be650c101f6c0dc6fae64fc3bc34e04e196d227b96306ac36dc20adbdf0aca61e02ec856bc7fc131f74892c537c8a83a74afa21cf2c631f740faf29f40a
7
- data.tar.gz: '0599a68ddb0f0133643bc5c358bebfd1f9481f34834b6c99256517e1525f853e751b821ca23dcebd74469f352355b1191256241da8313957cf525d88e2d0bd6a'
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
- FastEntry comes with a web application that can display the current state of your cache usage. Use it to view cache keys, inspect details or invalidate cached information.
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: Rails.cache.read(key.to_s),
31
+ cache_value: value,
28
32
  expiration: (Time.at(expiration_date) if expiration_date.present?)
29
33
  }
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module Fastentry
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Alves