Fix cache store pool config deprecation warnings (#27551)

This commit is contained in:
Claire authored and GitHub committed 2023-10-25 12:01:21 +00:00
1 parent c926f5fd67
commit fa65c8244f
1 file changed
+4 -2
+4 -2
View File
@@ -35,9 +35,11 @@ REDIS_CACHE_PARAMS = {
url: ENV['CACHE_REDIS_URL'],
expires_in: 10.minutes,
namespace: cache_namespace,
pool_size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
pool_timeout: 5,
connect_timeout: 5,
pool: {
size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
timeout: 5,
},
}.freeze
REDIS_SIDEKIQ_PARAMS = {