aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache/Redis.php
Commit message (Collapse)AuthorAgeFilesLines
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: add negative compare-and-delete to imemcacheRobin Appelman2024-08-201-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: remove Redis::DEFAULT_TTL constant now that it's defined in the interfaceRobin Appelman2024-08-071-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-26/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Refactor `OC\Server::getGetRedisFactory`Andrew Summers2024-03-151-2/+2
| | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* set a default and max ttl for redis keysRobin Appelman2024-02-231-7/+19
| | | | | | having infinite TTL can lead to leaked keys as the prefix changes with version upgrades Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust redis compareSetTTL to use a lua scriptRobin Appelman2023-12-211-9/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* restore shared lock ttl when releasingRobin Appelman2023-12-211-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* redis: move lua scripts to class and add type hintsVarun Patil2023-05-101-20/+20
| | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* redis: use atomic operations everywhereVarun Patil2023-04-161-35/+55
| | | | | | | | | | | | This removes a lot of acrobatics in the code and does each operation atomically using a lua script. This also reduces several round trips to the server, and the scripts are compiled and cached server-side. Notably, since all operations work only on a single key (except clear, which is broken anyway and shouldn't be used), they will continue to function and be atomic for Redis cluster. Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* Fix RedisClusterGit'Fellow2023-03-221-1/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Move from DEL to UNLINKGit'Fellow2023-03-221-3/+3
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Only setup redis connection if neededJulius Härtl2022-11-221-19/+27
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Correctly handle Redis::keys returning falseCôme Chilliet2022-09-291-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add a built-in profiler inside NextcloudCarl Schwan2022-04-041-109/+15
| | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Check if directoy is writable instead of possibly missing fileCarl Schwan2021-12-201-10/+14
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to log DB, redis and LDAP requests into filesJoas Schilling2021-12-011-1/+84
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* ensure redis returns bool for hasKeyArthur Schiwon2021-04-131-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Actually set the TTL on redis setRoeland Jago Douma2020-12-211-1/+7
| | | | | | Else well the keys remain for ever and ever. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+0
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Simplify ternary operator statementsMorris Jobke2018-01-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not scan for keys just get all the keys (with prefix)Roeland Jago Douma2017-05-161-6/+4
| | | | | | | Apparently scan leads to some issues sometimes on cluster. So just use the get function to fetch the keys. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Compatibility with Redis and RedisClusterMorris Jobke2017-05-041-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add Redis Cluster supportRobin McCorkell2017-03-251-14/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-2/+1
|
* factor out redis configuration into it's own factoryRobin Appelman2016-05-031-29/+2
|
* Move \OC\Memcache to PSR-4Roeland Jago Douma2016-04-181-0/+208