porpoise 0.9.2 → 0.9.3

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
  SHA1:
3
- metadata.gz: 70da1e3de3220160b8c00fd70a9d50337540f85f
4
- data.tar.gz: 740fa453878aad9df5a2d2d8ae0c4c2404be01d7
3
+ metadata.gz: 1bb9742ea2691c9286a6d5c59087aa574220e30a
4
+ data.tar.gz: d35d5078dfa2725190f8298030c1d7aa3fcaf186
5
5
  SHA512:
6
- metadata.gz: b4f729b64723691c68b499916fc8a42497d7bdc29b7ae7854a1636067400db9af6343cdd58efba06562a2d0aeaa94558931772a6d68a79c5dc6eb3515a8d5fdc
7
- data.tar.gz: 1664af19bba339e78dd17fd58954661f266cc302407076c55a06eac238a2568540adbbe7b991ddcdd9f8d860bc5ccdc767e7b89c1b3947cee08c10d6a02c75ce
6
+ metadata.gz: a2fac198b35735804800e2c18e7cc0a9240fe78f2ad93f7300c3d2b9e3ffdfb446a7ea57134651f4cf04d7a4f5d133872590387718ddec1effa294b9dfc7884a
7
+ data.tar.gz: 9307bec54ebd9202dfa2a315a9930531b11ebe3562b2e0b98f5b495e9e66f322f6aa05324822f3ed14f1304cba2011ec1c3bd2b6b27d0b3a46c964f4563ccf51
data/README.md CHANGED
@@ -6,7 +6,7 @@ Porpoise implements an additional cache backend for Ruby on Rails applications.
6
6
 
7
7
  ### Performance
8
8
 
9
- Redis outperforms this implementation by a long shot and I don't think I have to tell why. For an SQL based solution it still performs alright though. Besides, this thing integrates with Rails, uses ActiveRecord and all the bloat that comes with it. And altough a cache should help performance, cache read/write speed sometimes are not the problem. To prevent firing the same query when reading the same cache fragment over and over again, this thing comes with a short life in-memory cache to quickly return those items. In our situation, reading data was even faster than the Redis based solution.
9
+ Redis outperforms this implementation and I don't think I have to tell why. For an SQL based solution it still performs alright though. By using a short living in-memory cache it actually comes close to a Redis based solution, at least in our setup. Besides, this thing integrates with Rails, uses ActiveRecord and all the bloat that comes with it. And although a cache should help performance, cache read/write speed sometimes are not the problem. To prevent firing the same query when reading the same cache fragment over and over again, this thing comes with a short life in-memory cache to quickly return those items. In our situation, reading data was even faster than the Redis based solution.
10
10
 
11
11
  ### Then why?
12
12
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- porpoise (0.9.1)
4
+ porpoise (0.9.2)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  rails (>= 3.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- porpoise (0.9.1)
4
+ porpoise (0.9.2)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  rails (>= 3.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- porpoise (0.9.1)
4
+ porpoise (0.9.2)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  rails (>= 3.2)
@@ -174,6 +174,9 @@ module ActiveSupport
174
174
  end
175
175
 
176
176
  def short_mem_del(name)
177
+ @slc ||= {}
178
+ @slt ||= {}
179
+
177
180
  @slc.delete(name)
178
181
  @slt.delete(name)
179
182
  end
@@ -1,3 +1,3 @@
1
1
  module Porpoise
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porpoise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wessel van Heerde
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-07 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler