39 Commits

Author SHA1 Message Date
Michael Grunder
ece3f7bebc Fix config.m4 when using custom dep paths (#2453)
* We need both PHP_ADD_LIBRARY_WITH_PATH and PHP_ADD_INCLUDE

Fixes #2452

* Add an initial test block for ./configure correctness.
2024-03-04 21:03:01 -08:00
Karina Kwiatek
b64d93e1c4 Correct misspelling of libzstd in config args 2022-05-05 20:00:44 +02:00
Nathaniel Braun
18706d9271 Add support for exponential backoff on retry 2021-07-20 09:21:13 +00:00
michael-grunder
c8a9859e2d Fix typo in config.m4 2021-03-09 13:29:47 -08:00
Remi Collet
83a1b7c5e2 fix configure message (#1803) 2020-07-02 09:52:54 -07:00
Remi Collet
3c56289c71 check for hash extension during the build 2020-07-01 10:48:00 -07:00
Remi Collet
a88186c293 use pkg-config for liblz4 2020-06-26 07:37:49 +02:00
Remi Collet
f74207b092 fix test syntax 2020-06-26 07:32:49 +02:00
Remi Collet
f57fae532d use pkg-config for libzstd and liblzf 2020-06-26 07:32:49 +02:00
Remi Collet
e5de8fa1ff copy/paste err 2020-06-26 07:21:21 +02:00
Remi Collet
19269cb1db fix lz4 library name 2020-06-26 07:18:57 +02:00
Michael Grunder
04def9fbe2 Rebased LZ4 PR (#1781)
LZ4 compression by @iliaal
2020-06-07 14:09:30 -07:00
mi-nakano
20a3dc7251 bugfix: PHP_REDIS_JSON parameter at configure 2020-05-21 22:14:00 +09:00
Pavlo Yatsukhnenko
c94e28f1eb Add RedisSentinel class and tests 2020-02-06 14:14:46 -08:00
Remi Collet
2abc61da31 Add support for Zstd compression 2019-07-09 10:00:40 +02:00
michael-grunder
a537df8321 Bikeshedding error message 2019-06-21 11:55:13 -07:00
michael-grunder
aa110feb82 Cleanup version check output 2019-06-21 11:55:13 -07:00
michael-grunder
6973478c32 Require msgpack > 2.0.3
Although the msgpack version numbers appear to be x.y.z[-dev], I'm
testing as if it were w.x.y.z[-dev] in case this ever changes.  Right
now the $4 is the same as adding 0.
2019-06-21 11:55:13 -07:00
Pavlo Yatsukhnenko
235a27e7c0 Issue #1577
Remove checking of version of msgpack.
Allow to disable json serializer.
Fix tests.
2019-06-21 11:55:13 -07:00
Pavlo Yatsukhnenko
823978b4e3 msgpack 2.0.3 or greater required 2019-03-23 16:55:43 +02:00
michael-grunder
aff75ffdb3 We're only compatible with PHP7 now \o/
This update fixes merge conflicts that would have prevented us from
merging the msgpack PR (#1050).
2019-03-23 16:55:43 +02:00
michael-grunder
545250f30b Cleanup rebase artifact and move msgpack to serializer section 2019-03-23 16:55:43 +02:00
B. Gortney
d5b8f83340 rebase msgpack pull request (#801) on develop branch 2019-03-23 16:55:43 +02:00
Pavlo Yatsukhnenko
a4ccbfdaa5 Issue #1325 2018-04-04 17:04:46 +03:00
Pavlo Yatsukhnenko
fcc91a293a Show git revision in phpinfo 2018-02-26 10:36:15 +02:00
Pavlo Yatsukhnenko
8657557fb1 fix config.m4 2017-10-17 17:08:42 +03:00
Pavlo Yatsukhnenko
e2c51251d5 Issue #1048
Add --with-liblzf configure option to use system liblzf.
Use exponentially growing buffer for lzf_decompress.
Move liblzf files to separeted dir in package.xml.
2017-10-17 17:08:42 +03:00
Pavlo Yatsukhnenko
8cb2d5bd94 Issue #1048
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-10-17 17:08:42 +03:00
michael-grunder
7da57ed45b Initial commit of redis_commands.c
Given that non cluster and cluster based redis objects should act
exactly the same way (in terms of argument handling/processing)
we're extracting the parsing of arguments and command construction
from being directly inside of the PHP_METHOD itself.

This way, we don't repeat ourselves having two identical places
where we do this but in a slightly different way.

Every command takes a RedisSock pointer (coming from redis_sock_get
in a standard redis class, and cluster->flags in a cluster).

If we're passed a pointer for slot, we'll hash one of the keys
to return it's proper slot.
2015-05-05 14:11:15 -07:00
michael-grunder
2f69b07ee4 Initial commit of RedisCluster class and library
This is an initial commmit which adds a RedisCluster class as well
as the framework around which we'll be building proper cluster
support.

The first commit just contains the code to set up and use our new
RedisCluster class as well as parsing logic to handline CLUSTER NODES
such that we can map the keyspace.

Next up, command processing and then pipelining in a sane way.
2015-05-05 13:37:18 -07:00
Andrew Sitnikov
2b0cd7715f Fix include path for igbinary support 2012-10-25 10:41:12 +03:00
Nicolas Favre-Felix
34de3722f4 Remove igbinary from config.m4 2012-09-02 11:13:27 +01:00
Nicolas Favre-Felix
3564d8fb2f Refactoring 2011-08-19 13:18:59 +01:00
Nicolas Favre-Felix
8ec96a1c5f RedisArray constructor 2011-08-18 10:35:57 +01:00
Nicolas Favre-Felix
73d99c3ec8 Added configure flag to disable sessions. 2011-06-25 23:09:09 +01:00
Nicolas Favre-Felix
ad4d302a43 Added igbinary. 2010-12-12 22:56:50 +01:00
Nicolas Favre-Felix
4963a9aa2b New feature: PHP session handler. 2010-12-02 16:32:33 +01:00
Nasreddine Bouafif
f4af354475 re-organize code, init pipeline 2010-04-01 18:58:02 +02:00
Nicolas Favre-Felix
637b1c40f5 Initial commit 2009-11-13 11:39:33 +01:00