Pavlo Yatsukhnenko
6b411aa88b
Issue #1508
...
Wrap all calls of `call_user_function` into `ra_call_user_function`
where AUTH command sended before function call.
2019-02-27 15:34:24 +02:00
Pavlo Yatsukhnenko
b5549cffd2
RedisArray auth.
...
Issue #1508
2019-02-19 21:48:32 +02:00
Pavlo Yatsukhnenko
8cd165dfc1
Use zend_string for storing key hashing algorithm
2019-02-19 13:54:34 +02:00
Pavlo Yatsukhnenko
850027ffd3
Different key hashing algorithms from hash extension.
2019-01-03 16:17:20 +02:00
Pavlo Yatsukhnenko
71922bf1dd
Add RedisArray::_continuum method
2018-12-22 15:31:51 +02:00
Pavlo Yatsukhnenko
bb32e6f3a0
Implement consistent hashing algorithm for RedisArray
2018-12-22 15:31:51 +02:00
Pavlo Yatsukhnenko
602740d35a
Use zend_string for storing RedisArray hosts
2018-12-19 10:16:54 +02:00
Michael Grunder
2c9e057236
Streams ( #1413 )
...
Streams API
2018-09-29 11:59:01 -07:00
Pavlo Yatsukhnenko
742cdd0594
Issue #1302
...
Handle async parameter for RedisCluster::flushDb and RedisCluster::flushAll
2018-04-22 22:26:13 +03:00
Pavlo Yatsukhnenko
acd10409bc
Issue #1302
...
Handle async parameter for RedisArray::flushDb and RedisArray::flushAll
TODO: implementation for RedisCluster and unit-tests
2018-04-22 22:26:13 +03:00
Pavlo Yatsukhnenko
1689318021
Refactor RedisArray
...
Add `multihost_distribute_call` function for iterating over RA hosts
and store results of functions into `return_value` array.
2018-04-11 00:03:34 +03:00
michael-grunder
a4afe91909
Some style normalization
2018-02-17 09:47:28 -08:00
Pavlo Yatsukhnenko
9cd059117a
Refactor RedisArray
...
Change type of returning value from `char *` to `zend_string *` for
`ra_extract_key` and `ra_call_extractor` functions.
Store keys as `zend_string *` in RedisArray::mset.
2018-01-29 22:37:36 +02:00
michael-grunder
04f62acbc8
Syntax fixes and prototype consolidation
...
Fix PHP_METHOD syntax fail for unlink
Move redis_unlink_cmd by redis_del_cmd as they're the same
2018-01-17 10:34:08 -08:00
michael-grunder
9e65c42931
Implement UNLINK command
...
This commit implements UNLINK for Redis, RedisCluster, and RedisArray.
To a client library UNLINK behaves identically to DEL so we can use the
same handlers for both.
2018-01-17 09:36:38 -08:00
Pavlo Yatsukhnenko
9d15f07adb
Issue #1224
2017-10-20 16:46:05 +03:00
Pavlo Yatsukhnenko
0115666e59
Add PHPREDIS_GET_OBJECT macros
2017-10-05 15:27:18 +03:00
michael-grunder
345fc7fc9f
Destroy all tabs :-)
2017-09-28 15:44:18 -07:00
Pavlo Yatsukhnenko
6a53cb99ba
Revert "Fix RA memory leak"
...
This reverts commit 5241bcb883 .
2017-09-28 22:33:31 +03:00
Pavlo Yatsukhnenko
5241bcb883
Fix RA memory leak
2017-09-28 16:53:12 +03:00
Pavlo Yatsukhnenko
3ec05496f2
Sort arginfos alphabetically
2017-09-27 10:03:32 +03:00
Pavlo Yatsukhnenko
4a0a46b4cb
Check number of elements in incoming array-argument
2017-08-28 16:17:05 +03:00
Pavlo Yatsukhnenko
e5660be4c6
More arginfo for RedisCluster + remove duplicates
2017-08-28 13:36:37 +03:00
Pavlo Yatsukhnenko
6c2c6faa1b
More arginfo for RedisArray
2017-08-23 09:26:12 +03:00
Pavlo Yatsukhnenko
212e323f5b
More arginfo for RedisArray
2017-08-22 17:23:19 +03:00
Pavlo Yatsukhnenko
e23be2c830
Add arginfo for RedisArray
2017-08-22 17:11:06 +03:00
Pavlo Yatsukhnenko
42f1c9779b
Fix static analyzer warnings
2017-08-15 15:24:06 +03:00
Pavlo Yatsukhnenko
e672f40bda
Duplicate incoming params via ZVAL_ZVAL in ra_forward_call
2017-08-12 00:01:48 +03:00
Pavlo Yatsukhnenko
142b51ded9
refactoring
...
Small change php5 implementation of ZEND_HASH_FOREACH_* macroses.
Use ZEND_HASH_FOREACH_VAL in ra_get_key_type.
Allocate array via MAKE_STD_ZVAL in HANDLE_MULTI_EXEC macro.
2017-08-11 16:20:40 +03:00
Pavlo Yatsukhnenko
a56ed7f9f9
Change type of RedisArray pure_cmds to HashTable
2017-08-04 13:56:48 +03:00
Pavlo Yatsukhnenko
4e32254ec2
Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fields
2017-08-02 13:20:30 +03:00
Pavlo Yatsukhnenko
faac8b0600
CID 158616
2017-07-28 14:50:41 +03:00
Pavlo Yatsukhnenko
47d3722dec
Remove ra_find_key + use return_value instead of stack allocated z_tmp inra_forward_call
2017-04-27 17:46:49 +03:00
Pavlo Yatsukhnenko
b56dc49eec
Processing read_timeout parameter + update docs
2017-04-11 15:22:46 +03:00
michael-grunder
8978b3aaf2
Tabs are evil
2017-04-03 12:29:42 -07:00
Pavlo Yatsukhnenko
f81694e69c
Use crc32 table from PHP distro ( #1144 )
...
* Use crc32 table from PHP distro
* Remove rcrc32 function
2017-04-03 21:55:05 +03:00
Pavlo Yatsukhnenko
88d870e0d9
refactoring
...
redis_sock_get and redis_array_get return pointer to RedisSock/RedisArray
structure instead of assign by pointer pointer
2017-02-10 23:30:39 +02:00
Pavlo Yatsukhnenko
a765f8d4b5
redis_array_object
2017-02-08 23:13:28 +02:00
Pavlo Yatsukhnenko
495e5df4f7
refactoring
2017-01-19 00:10:13 +02:00
Pavlo Yatsukhnenko
1fb6a24556
fix 'optional var not initialized' warnings
2016-12-20 16:26:21 +02:00
Pavlo Yatsukhnenko
5ee32baee6
PHP_FE_END + ZEND_MOD_END
2016-12-20 11:06:59 +02:00
michael-grunder
721c272995
Use PHP_FE_END when available for RedisArray and RedisCluster
2016-12-19 11:46:19 -08:00
Pavlo Yatsukhnenko
37d8bfde06
refactoring
2016-12-13 17:39:04 +02:00
Pavlo Yatsukhnenko
0a886fef22
TravisCI: make clang happy with older php versions
2016-12-06 11:18:09 +02:00
Pavlo Yatsukhnenko
433caf4788
refactoring
2016-11-21 17:46:58 +02:00
Pavlo Yatsukhnenko
3d7da1fdb6
refactoring
2016-11-20 21:07:24 +02:00
Pavlo Yatsukhnenko
6d6deae573
TravisCI: clang + refactoring
2016-11-18 18:57:44 +02:00
Pavlo Yatsukhnenko
14c19fa3a0
refactoring
2016-11-16 18:05:27 +02:00
Pavlo Yatsukhnenko
eab93272db
refactoring
2016-11-15 19:53:34 +02:00
Pavlo Yatsukhnenko
f5ddf53b79
php7 compatibility
...
The 'l' specifier now expects a zend_long instead of a long
for zend_parse_parameters.
2016-11-14 20:52:51 +02:00