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-09-29SINTERCARD and ZINTERCARD commandsmichael-grunder
Implement Redis 7.0.0 commands SINTERCARD and ZINTERCARD.
2022-09-07Redis::client commandissue-1894-clientPavlo Yatsukhnenko
2022-08-03Issue #1943Pavlo Yatsukhnenko
Add lPos command.
2022-06-07Issue #1894issue-1894-pop-countPavlo Yatsukhnenko
Add the COUNT argument to LPOP and RPOP
2022-05-27Backoff settings in constructorPavlo Yatsukhnenko
2022-04-12Issue #1894Pavlo Yatsukhnenko
Add Redis::hRandField command
2022-04-05Issue #1746Pavlo Yatsukhnenko
2022-04-03Don't allow reconnect on read responsePavlo Yatsukhnenko
2022-01-16Remove unused redis_single_line_replyPavlo Yatsukhnenko
2021-12-28[WIP] Issue #1894Pavlo Yatsukhnenko
Add geosearch and geosearchstore commands.
2021-12-13Issue #2009Pavlo Yatsukhnenko
2021-12-13Remove unused function redis_sock_copy_authPavlo Yatsukhnenko
2021-08-26switch to legacy arginfo for PHP < 8Remi Collet
2021-08-26use stub/arginfo for RedisSentinelRemi Collet
2021-06-22Separate compression and create utility methodsmichael-grunder
This commit splits compression and serialization into two distinct parts and adds some utility functions so the user can compress/uncompress or pack/unpack data explicily. See #1939
2021-04-10[WIP] Issue #1894Pavlo Yatsukhnenko
Add GET option to SET command
2021-03-06[WIP] Issue #1894Pavlo Yatsukhnenko
Add Redis::zdiff and Redis::zdiffstore commands
2021-02-25Normalize Redis callback prototypes and stop typecasting. (#1935)Michael Grunder
2021-01-17[WIP] Issue #1894Pavlo Yatsukhnenko
Add Redis::zMscore command.
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-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-02Issue #1600Pavlo Yatsukhnenko
Ssl context options in Redis::connect
2019-11-05Issue #1664Pavlo Yatsukhnenko
In PR #1602 we decided to use unsigned short for storing RedisSock->port but in previous release I reverted that change. In this PR I changed signatire of redis_sock_create to prevent unneccecary convertion of types.
2019-07-18ulong => zend_ulong for 7.4Remi Collet
2019-07-09cleanup TSRMLS_* usageRemi Collet
2019-06-12Fix xInfo ro RedisClusterPavlo Yatsukhnenko
2019-06-12xInfo response formatPavlo 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-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-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-21Remove unused parameter lazy_connect from redis_sock_createPavlo Yatsukhnenko
2018-11-0632bit xclaim fix (#1444)Michael Grunder
This should fix the XCLAIM issue on 32-bit PHP installs. This change will allow the user to pass the XCLAIM TIME option pretty much any way they want (string, long, or float) and it should work. Note that in 32-bit PHP they will only be able to pass exact values <= 2^53 as PHP will use a double precision floating point for integer overflows.
2018-09-29Streams (#1413)Michael Grunder
Streams API
2018-08-22Change connect/reconnect logicPavlo Yatsukhnenko
Persistant connections can be closed via close method. Connection marked as failed only after reconnection attempts.
2017-10-17Issue #1048Pavlo Yatsukhnenko
This commit is adding support of data compression. LZF was choosen because it small and fast and Redis server uses it. Since [pecl package](https://pecl.php.net/package/lzf) doesn't provide lzf.h file after installing, LZF library was added as submodule. Another algorythms may be easely added by analogy with serializers. TODO: unit-tests for different data types.
2017-08-01Remove redis_get_exception_basePavlo Yatsukhnenko
2017-07-25runtime exteptionPavlo Yatsukhnenko
2017-07-13Remove redis_send_discard duplicationPavlo Yatsukhnenko
2017-04-29Remove integer_length functionmichael-grunder
2017-04-29Actual removal of redis_cmd_format_static functionmichael-grunder
2017-04-29Replace redis_cmd_format_static with redis_spprintfmichael-grunder
2017-04-28Replace redis_cmd_format_static with redis_spprintfmichael-grunder
2017-04-28Remove redis_cmd_append_str and redis_cmd_append_intmichael-grunder
2017-04-28Remove redis_cmd_format_header command completelymichael-grunder
2017-04-28Removes legacy function redis_cmd_format()michael-grunder
2017-04-27Initial commit of refactored command constructionmichael-grunder
This commit adds a new printf like command construction function with additionaly format specifiers specific to phpredis. Because phpredis can be configured to automatically prefix keys and/or automatically serialize values we had a great deal of redundant boilerplate code. zend_parse_paramaters(..., "sz", &key, &keylen, &z_arg); keyfree = redis_key_prefix(redis_sock, &key, &keylen); valfree = redis_serialize(redis_sock, z_val, &realval, &reallen); /* More processing */ if (keyfree) efree(key); if (valfree) efree(val); Now it is possible to use redis_spprintf and use format specifiers specific to these tasks, which will handle prefixing or serialization (as well as memory cleanup) automatically: /* The library function will automatically prefix and serialize values if phpredis has been configured to do that */ len = phpredis_spprintf(redis_sock, slot TRMLS_CC, "SET", "kv", key, key_len, z_value);
2017-04-23Allow MIGRATE to accept multiple keysmichael-grunder
2017-04-21Remove REDIS_DOUBLE_TO_STRING macrosPavlo Yatsukhnenko
2017-04-11Processing `read_timeout` parameter + update docsPavlo Yatsukhnenko