79227118

Date: 2024-11-26 14:34:39
Score: 0.5
Natty:
Report link

For Redis:

As of Rails 7.1.0.beta1, Rails.cache.redis always returns a Connection Pool (https://github.com/mperham/connection_pool), so the access to the Redis client and consequently to the keys are now different:

Rails.cache.redis.with do |redis_client|
  redis_client.keys
end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: joaomarcos96