redis-rack 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/lib/redis/rack/connection.rb +5 -1
- data/lib/redis/rack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8fe2b21455a3af95982db86314846abed8b97be35712009a6c720b1fe8a0e3f
|
4
|
+
data.tar.gz: 99c15862e3d1e7c1d16d460da299fcc0dc551a606ce9731710f153f51f3b6196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8ef0c5c0286d5df01ee90df055e19ef90969f11b0568a681e64f1955558837584504c5a1b62c8cfc5e7b6fead33cdfa39741f8048ecf787457cb85c7910e6d
|
7
|
+
data.tar.gz: e3f5a9642b8f50e9da6cc05f9387d7acca8245bd702e8f795690b383b6fe253ec037ab930e68a282c37e32f139956e00e6a9a5137dae5957cb03e332cfe057a4
|
data/Gemfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
class Redis
|
2
2
|
module Rack
|
3
3
|
class Connection
|
4
|
+
POOL_KEYS = %i[pool pool_size pool_timeout].freeze
|
5
|
+
|
4
6
|
def initialize(options = {})
|
5
7
|
@options = options
|
6
8
|
@store = options[:redis_store]
|
@@ -24,7 +26,9 @@ class Redis
|
|
24
26
|
end
|
25
27
|
|
26
28
|
def pooled?
|
27
|
-
|
29
|
+
return @pooled if defined?(@pooled)
|
30
|
+
|
31
|
+
@pooled = POOL_KEYS.any? { |key| @options.key?(key) }
|
28
32
|
end
|
29
33
|
|
30
34
|
def pool
|
data/lib/redis/rack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-store
|