bigrails-redis 0.7.2 → 0.8.0
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 +4 -4
- data/README.md +2 -2
- data/lib/big_rails/redis/builder.rb +1 -1
- data/lib/big_rails/redis/registry.rb +2 -2
- data/lib/big_rails/redis/version.rb +1 -1
- metadata +6 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1ea25beb121b4011ad78a86fd8ca83a4e76b820a0afd8f6acc8168f11367124
|
|
4
|
+
data.tar.gz: 86fc73aabc2087fb05b245d45d6c69ada045df4b6ad7a6ac135f3d3877a291c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d3769021589337047178f45e6e83e12c24aedfbdfae655417f1a716b86687de086b4ce111c5afc7954bd3f9143ff1b92960663ca3c83d85530c8da73a94fb62
|
|
7
|
+
data.tar.gz: 7d5554d8589a6fdab547bb9b363f38958191f78489ad6f6b928135a3ef550e18b76dafabca74e67d60dd62a55a7d5f7add39cec3f7c38534654e96a4067dc738
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# BigRails::Redis [](https://github.com/rubyatscale/bigrails-redis/actions/workflows/ci.yml)
|
|
2
2
|
|
|
3
3
|
A simple Redis connection manager for Rails applications with the need to manage multiple redis connections. It supports distributed and [ConnectionPool](https://github.com/mperham/connection_pool) out of the box.
|
|
4
4
|
|
|
@@ -95,7 +95,7 @@ If you request a wrapped connection for a non-pooled connection, it'll just retu
|
|
|
95
95
|
|
|
96
96
|
### Verifying Connections
|
|
97
97
|
|
|
98
|
-
This library also allows you to verify connections on demand. If you want, perform the verification in a startup health check to make sure all your connections are valid. It will perform a simple [`PING` command](https://redis.io/commands/PING) and
|
|
98
|
+
This library also allows you to verify connections on demand. If you want, perform the verification in a startup health check to make sure all your connections are valid. It will perform a simple [`PING` command](https://redis.io/commands/PING) and close the connection if it was originally closed. This is to help reduce the number of connections you actually need open. An error will be raised if the connection is bad.
|
|
99
99
|
|
|
100
100
|
```ruby
|
|
101
101
|
# Verify all connections:
|
|
@@ -31,8 +31,8 @@ module BigRails
|
|
|
31
31
|
configurations[validate_name(name)].deep_dup
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def each(&
|
|
35
|
-
configurations.keys.map { |name| self.for(name) }.each(&
|
|
34
|
+
def each(&)
|
|
35
|
+
configurations.keys.map { |name| self.for(name) }.each(&)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def disconnect
|
metadata
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bigrails-redis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ngan Pham
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: activesupport
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
@@ -25,7 +24,7 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '6'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: railties
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - ">="
|
|
@@ -52,7 +51,6 @@ dependencies:
|
|
|
52
51
|
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
53
|
version: '4'
|
|
55
|
-
description:
|
|
56
54
|
email:
|
|
57
55
|
- ngan@users.noreply.github.com
|
|
58
56
|
executables: []
|
|
@@ -76,7 +74,6 @@ metadata:
|
|
|
76
74
|
homepage_uri: https://github.com/rubyatscale/bigrails-redis
|
|
77
75
|
source_code_uri: https://github.com/rubyatscale/bigrails-redis
|
|
78
76
|
changelog_uri: https://github.com/rubyatscale/bigrails-redis/releases
|
|
79
|
-
post_install_message:
|
|
80
77
|
rdoc_options: []
|
|
81
78
|
require_paths:
|
|
82
79
|
- lib
|
|
@@ -84,15 +81,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
84
81
|
requirements:
|
|
85
82
|
- - ">="
|
|
86
83
|
- !ruby/object:Gem::Version
|
|
87
|
-
version:
|
|
84
|
+
version: '3.3'
|
|
88
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
86
|
requirements:
|
|
90
87
|
- - ">="
|
|
91
88
|
- !ruby/object:Gem::Version
|
|
92
89
|
version: '0'
|
|
93
90
|
requirements: []
|
|
94
|
-
rubygems_version: 3.
|
|
95
|
-
signing_key:
|
|
91
|
+
rubygems_version: 3.6.9
|
|
96
92
|
specification_version: 4
|
|
97
93
|
summary: Redis connection manager for Rails applications.
|
|
98
94
|
test_files: []
|