Skip to content

Commit 4b8cf03

Browse files
committed
Enable persistent predis connections
1 parent f8741bc commit 4b8cf03

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
"pagerfanta/doctrine-orm-adapter": "^4.2",
4848
"pagerfanta/twig": "^4.2",
4949
"phpdocumentor/reflection-docblock": "^5.2",
50-
"predis/predis": "^2.0",
50+
"predis/predis": "^2.4",
5151
"scheb/2fa-backup-code": "^7",
5252
"scheb/2fa-bundle": "^7",
5353
"scheb/2fa-totp": "^7",
5454
"scheb/2fa-trusted-device": "^7",
5555
"seld/signal-handler": "^2",
56-
"snc/redis-bundle": "^4.7",
56+
"snc/redis-bundle": "^4.10",
5757
"symfony/asset": "^7",
5858
"symfony/console": "^7",
5959
"symfony/doctrine-bridge": "^7",

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/snc_redis.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ snc_redis:
1515
dsn: '%env(REDIS_URL)%'
1616
options:
1717
connection_timeout: 1
18+
connection_persistent: main
1819
commands:
1920
fetchVersionIds: 'App\Redis\FetchVersionIds'
2021
downloadsIncr: 'App\Redis\DownloadsIncr'
@@ -26,5 +27,6 @@ snc_redis:
2627
dsn: '%env(REDIS_CACHE_URL)%'
2728
options:
2829
connection_timeout: 1
30+
connection_persistent: cache
2931
commands:
3032
incrFailedLoginCounter: 'App\Redis\FailedLoginCounter'

0 commit comments

Comments
 (0)