From a311cc4ec3cecdbaf83ba66985efa82137e37cc0 Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Wed, 24 Jun 2020 17:00:01 -0700 Subject: Support for Redis 6 ACLs (#1791) 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). --- redis_array_impl.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'redis_array_impl.h') diff --git a/redis_array_impl.h b/redis_array_impl.h index b5d2e1ce..0ef5a73f 100644 --- a/redis_array_impl.h +++ b/redis_array_impl.h @@ -10,7 +10,15 @@ #include "redis_array.h" RedisArray *ra_load_array(const char *name); -RedisArray *ra_make_array(HashTable *hosts, zval *z_fun, zval *z_dist, HashTable *hosts_prev, zend_bool b_index, zend_bool b_pconnect, long retry_interval, zend_bool b_lazy_connect, double connect_timeout, double read_timeout, zend_bool consistent, zend_string *algorithm, zend_string *auth); + +RedisArray *ra_make_array(HashTable *hosts, zval *z_fun, zval *z_dist, + HashTable *hosts_prev, zend_bool b_index, + zend_bool b_pconnect, long retry_interval, + zend_bool b_lazy_connect, double connect_timeout, + double read_timeout, zend_bool consistent, + zend_string *algorithm, zend_string *auth, + zend_string *pass); + zval *ra_find_node_by_name(RedisArray *ra, const char *host, int host_len); zval *ra_find_node(RedisArray *ra, const char *key, int key_len, int *out_pos); void ra_init_function_table(RedisArray *ra); -- cgit v1.2.3