Josh
3a8b2b843e
fix(cache): Set default Redis port to `0` for UNIX sockets
...
When using phpredis with a UNIX socket, the port should either not be specified at all or be `<1`.
https://github.com/phpredis/phpredis?tab=readme-ov-file#connect-open
d0b0c5cfdd/library.c (L3332-L3334)
Fixes #54813
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-09-07 14:30:34 +07:00
Ferdinand Thiessen
5981b7eb51
chore: apply new CSFixer rules
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
# Conflicts:
# apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
2025-07-01 16:26:50 +07:00
Daniel Kesselberg
af6de04e9e
style: update codestyle for coding-standard 1.2.3
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Robin Appelman
32f5739bc6
feat: add config flag to toggle persistent redis connections
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-07-22 14:25:20 +07:00
Git'Fellow
4c61a94f4f
fix(redis): Require version >=4 for unlink
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-07-12 19:53:49 +07:00
Andy Scherzinger
dae7c159f7
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-24 13:11:22 +07:00
Git'Fellow
6083fe3c9b
Code simplification using null coalescing
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-08-13 16:26:24 +07:00
Leo R. Lundgren
c52aaa3647
redis: Do not try to authenticate with non-string password/user
...
Signed-off-by: Leo R. Lundgren <leo@finalresort.org>
2023-06-01 13:08:57 +07:00
Julius Härtl
83717a7800
Add event logging for db and redis connection
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-02-28 11:24:41 +07:00
Robin Appelman
698a713904
use persistent connections when connecting to redis
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-01 18:14:59 +07:00
Louis Chemineau
5dbb080517
Use strict comparison to detect usage of redis cluster
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-11-25 16:19:42 +07:00
Daniel Kesselberg
dff76f021f
Fix check for redis minimal version
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-09-22 19:04:00 +07:00
Vincent Petry
41ddbec40f
Allow empty Redis config
...
When Redis config is empty, use defaults.
However when a Redis cluster config is specified, the "seeds" attribute
is mandatory.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-23 09:53:06 +07:00
John Molakvoæ (skjnldsv)
6e00fe8c26
Properly support RedisCluster
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-22 07:42:26 +07:00
John Molakvoæ (skjnldsv)
ed10d85ff3
Support redis user password auth and tls encryption
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-20 17:57:33 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Christoph Wurst
cb057829f7
Update license headers for 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +07:00
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
...
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 14:19:56 +07:00
Christoph Wurst
14c996d982
Use elseif instead of else if
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 10:35:09 +07:00
Christoph Wurst
5bf3d1bb38
Update license headers
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +07:00
Morris Jobke
e9e9b6a4b6
Allow redis cluster to use password
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-05-22 12:19:07 +07:00
Alejandro Varela
f6d069ee58
Fix Redis with unix socket
...
Signed-off-by: Alejandro Varela <epma01@gmail.com>
2019-05-14 18:59:17 +07:00
Morris Jobke
0eebff152a
Update license headers
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-11-06 16:56:19 +07:00
Jörn Friedrich Dreyer
5da845609d
no ternary
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-03-25 21:25:38 +07:00
Jörn Friedrich Dreyer
3d0005d001
fix constant
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-03-25 21:25:30 +07:00
Robin McCorkell
ef57c03dd2
Add Redis Cluster support
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-03-25 21:25:27 +07:00
Joas Schilling
0215b004da
Update with robin
2016-07-21 18:13:58 +07:00
Joas Schilling
ba87db3fcc
Fix others
2016-07-21 18:13:57 +07:00
Robin Appelman
e2f6aa3a57
factor out redis configuration into it's own factory
2016-05-03 16:02:17 +07:00