h2ocube_rails_cache 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60978f917ed31612a423bb155585ea08baa3e1030e5e46ca04b4e57bfea85c87
4
- data.tar.gz: df7578555b35f6df7fc1bc48f702691443d277cb9796eaef0957671be7ee4e84
3
+ metadata.gz: '0289601a9b244df72fd7fe25a6efc79248550fced3d6b866bde35f1e70518c7b'
4
+ data.tar.gz: 3229f9da97c42c9a81038c9424a2fa38211238ae187f2bb32b952108e13f0ec9
5
5
  SHA512:
6
- metadata.gz: e281ed0b35fd6e0e9b4c658da0b097bf1752a3e069cfce351bb1974e47c53e887f3882734b56bf607fa1f631d720f7f469532587624bf3bf561ec87d45c30706
7
- data.tar.gz: 4bf1959286bf8fa3d983d9111f358f9c0b7087a0147e25c6d3562a09b119141e988477b387c3c5fbe2af2993689237cea1ee11504d50240fae5e609d3982ac59
6
+ metadata.gz: de46981ebbc21dbebbd0bd1340c84fe03034eb0235ac6ae47b82fec80bc73d83de0b1c506934e0e9d7bad77043ab16e6d2a9391712a56ee2affca96951415749
7
+ data.tar.gz: 606709734ddb3890ba891133ae21c739d23e4358a3b43118fe4863efb2c9b4e79e1381baeb2504905cc54e63cfdb79bacc9446f18c7df9387a2b01df71a79328
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'h2ocube_rails_cache'
7
- gem.version = '0.2.0'
7
+ gem.version = '0.2.1'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
10
  gem.description = 'Just an redis cache.'
@@ -115,7 +115,7 @@ module ActiveSupport
115
115
 
116
116
  def clear
117
117
  instrument :clear, nil, nil do
118
- keys('*').each { |k| @data.del k }
118
+ keys.each_slice(1000) { |key_slice| @data.del(*key_slice) }
119
119
  true
120
120
  end
121
121
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-30 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis