Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-26Small cosmetic changes in cluster_libraryPavlo Yatsukhnenko
2022-10-24Issue #2106Pavlo Yatsukhnenko
Expose the transferred number of bytes
2022-10-22Implement ZRANGESTORE and add ZRANGE optionsmichael-grunder
* Add ZRANGESTORE command. * Add Redis 6.2's `REV`, `BYLEX`, and `BYSCORE` to ZRANGE options. * Refactor several ZRANGE family commands into a single reply and options handler, using PHP's new argument parsing macros. * Extend our tests to use the new ZRANGE options. See #1894
2022-10-08[B]LMPOP and [B]ZMPOP commandsmichael-grunder
Implement the new Redis 7.0.0 commands to pop multiple elements from one or more lists/zsets. Additionally, remove INTERNAL_FUNCTION_PARAMETERS from the redis_sock_read_multibulk_reply_zval helper function as it wasn't actually being used.
2022-10-07Allow negative timeout/read_timeout and fix docmichael-grunder
Co-authored-by: twosee <twose@qq.com>
2022-10-01SINTERCARD and ZINTERCARD commandsmichael-grunder
Implement Redis 7.0.0 commands SINTERCARD and ZINTERCARD.
2022-09-19Issue #2080: avoid registering the same replicas multiple times in case the ↵Marius Adam
master handles multiple slot ranges
2022-09-15Fix non standards conforming prototypes. (#2150)Michael Grunder
These now generate warnings with GCC 13
2022-06-28Refactor subscribe/unsubscribepubsubPavlo Yatsukhnenko
2022-06-07Issue #1894issue-1894-pop-countPavlo Yatsukhnenko
Add the COUNT argument to LPOP and RPOP
2022-04-03Don't allow reconnect on read responsePavlo Yatsukhnenko
2022-01-20Fix fallthrough warnings and refactor adding a score (#2049)Michael Grunder
* Suppress implicit fallthrough warnings by using an attribute if we have it and a do { } while(0) if we don't. * Move duplicated logic for appending a ZSET score to one utility function.
2021-12-18Fix typo/bug in cluster_scan_resp (#2045)Michael Grunder
2021-11-10Whitespacemichael-grunder
2021-10-28Added support for remapping the cluster's keyspace on a failoverBar Shaul
2021-04-10[WIP] Issue #1894Pavlo Yatsukhnenko
Add GET option to SET command
2021-03-10Pass compression flag when performing HMGET (#1945)Adam Olley
Without this, performing a HMGET call fails to decompress the data before returning it to php.
2020-09-28Issue.1847 cluster segfault (#1850)Michael Grunder
Fix for #1847 when dealing with NULL multi bulk replies in RedisCluster. Adds `Redis::OPT_NULL_MULTIBULK_AS_NULL` setting to have PhpRedis treat NULL multi bulk replies as `NULL` instead of `[]`. Co-authored-by: Alex Offshore <offshore@aopdg.ru>
2020-07-09Don't use zend_fcall_info.no_separationPavlo Yatsukhnenko
2020-07-07Issue #1607 (#1806)Pavlo Yatsukhnenko
2020-06-25Support for Redis 6 ACLs (#1791)Michael Grunder
Add support for Redis 6 ACLs in the `Redis`, `RedisCluster`, and `RedisArray` classes. On a related note, it adds a mechanism for users to customize how we generate persistent connection IDs such that they can be grouped in different ways depending on the specific use case required (e.g. it would allow connections to be grouped by username, or by user-defined persistent_id, or both).
2020-06-07Issue.1765 (#1774)Michael Grunder
Various improvements and fixes to cluster slot caching. * Improves slot caching so any unique set of seeds all hash to the same key * Fix a couple of memory leaks. * Fixes a segfault when executing a multiple key command such as `MGET` or `MSET` while the cluster is resharding.
2020-06-05Store auth information in cluster->flags->authPavlo Yatsukhnenko
2020-05-06fix [-Wformat=] warning on 32-bit (#1750)Remi Collet
Use the portable `ZEND_LONG_FORMAT` family instead of C format specifiers
2020-03-30Authenticate in redis_sock_server_openPavlo Yatsukhnenko
2020-03-11Various small changes in cluster_libraryPavlo Yatsukhnenko
2020-01-31Initial commit of ASK redirection fixmichael-grunder
See #1693
2020-01-19Fix a couple of memory leaks in Redis/RedisClustermichael-grunder
Addresses #1701
2020-01-06Fix typos detected by codespellTyson Andre
2019-12-02Enable slot caching for session clusterMichael Booth
2019-08-27Use pecalloc for consistencymichael-grunder
2019-08-27Also attach slaves when caching cluster slotsmichael-grunder
Addresses #1613
2019-07-31Fix overallocation in directed cluster MULTIBULK handling.michael-grunder
Addresses #1611
2019-07-18ulong => zend_ulong for 7.4Remi Collet
2019-07-17Don't double free the cache keymichael-grunder
Addresses #1591
2019-07-09cleanup TSRMLS_* usageRemi Collet
2019-07-05Issue #1591 (#1592)Pavlo Yatsukhnenko
* Issue #1591 * Add notes to Changelog
2019-06-15WIP: Enable pooling for cluster slave nodes.michael-grunder
Connections are stashed via redis_sock_disconnect so if RedisCluster doesn't explicitly call that for slaves then pooling is never used for those connections. Addresses #1568
2019-06-12Fix xInfo ro RedisClusterPavlo Yatsukhnenko
2019-05-13Adds OPT_REPLY_LITERAL for rawCommand and EVALmichael-grunder
Adds an option to process the actual strings in simple string replies as opposed to translating them to `true`. This only applies to `rawCommand` and `eval` because as far as I know know vanilla Redis command attaches any information besides `OK` to simple string replies. Addresses #1550
2019-05-11Fix copy-paste typoPavlo Yatsukhnenko
2019-05-11Fix support for STREAM to the RedisCluster::type commandPavlo Yatsukhnenko
2019-02-10Attach slot cache key and mechanism for invalidationmichael-grunder
2019-02-09Merge exception fixes into cluster-slot-cachemichael-grunder
2019-02-09PHP 7 exception and compiler warning fixesmichael-grunder
PHP 7 removed TSRMLS_CC from zend_throw_exception* routines. Additionally this commit creates two simple wrapper macros for throwing Redis or RedisCluster exceptions so we don't duplicate as much code. Additionally there were a couple of minor compiler warnings printf type correctness fixed in this commit.
2019-02-09WIP: Reimplementation of cluster slot cachingmichael-grunder
RedisCluster currently has a high construction overhead because every request has to issue a CLUSTER SLOTS command to map the keyspace. The issue is especially evident when a request only does a few commands.
2019-01-27PHP 5 is dead, long live PHP 7michael-grunder
This commit removes support for PHP 5 by getting rid of all of our Zend compatibility layer methods, as well as any call checking against PHP_MAJOR_VERSION or ZEND_MODULE_API_NO. Unit tests are all passing for Redis, RedisCluster, and RedisArray but this should still be considered a work in progress until more testing can be done. Addresses issue #1448
2019-01-18RedisCluster authPavlo Yatsukhnenko
2018-11-23Fix build warning for PHP 5Pavlo Yatsukhnenko
2018-11-22Issue #1464Pavlo Yatsukhnenko