Comments (2)
@justindowning: You don't need to force redis
to reconnect, it will automatically reconnect when it encounters inheritance errors. There is a test for this exact use case in the redis-rb
repository: fork_safety_test.rb
readthis
uses connection_pool to manage multiple connections. While it would be technically possible to iterate over each connection in the pool and force a reconnect, it isn't necessary. In fact, the connection pool documentation even mandates that connections be self repairing!
There is no provision for repairing or checking the health of a connection; connections should be self-repairing. This is true of the Dalli and Redis clients.
So, good news all around. You don't need to do anything!
from readthis.
Great to hear! Thanks for the quick and thorough response! 💚
from readthis.
Related Issues (20)
- Let us pass our own Connection Pool? HOT 2
- uninitialized constant ActiveRecord::Type from Rails.cache.fetch HOT 3
- Handle decimal expiration more gracefully, i.e. when SETEX expires_in.to_i is SETEX 0 HOT 1
- Readthis as a store for Rack::Cache? HOT 3
- 1.4.0 UnknownCommandError locating mexpire script. HOT 2
- A word about delete_matched HOT 1
- does not work with rails5 cached collection renderer HOT 4
- Getting error when Redis is down - Errno::EINVAL: Invalid argument HOT 2
- Incompatible character encodings: UTF-8 and ASCII-8BIT HOT 2
- Set readthis connection pool after configuring cache_store as readthis_store? HOT 3
- How to use zset in readthis? HOT 1
- Incrementing and decrementing key does not preserve its expiration (i.e. TTL) HOT 3
- why fault tolerant options is a global options? HOT 3
- How to close redis connection? HOT 1
- Is there any support for distributed client for redis? HOT 1
- Can readthis use hashes instead of strings? HOT 1
- Usage with Puma and connection_pool HOT 4
- Rails 6 cache versioning error HOT 3
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readthis.