diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-06-25 03:00:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 03:00:01 +0300 |
commit | a311cc4ec3cecdbaf83ba66985efa82137e37cc0 (patch) | |
tree | 078ca80c140e3a77e088a213066b27d0b350c7c6 /common.h | |
parent | 04def9fbe2194b3b711362de57260a6cd5216e69 (diff) |
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).
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -210,6 +210,10 @@ typedef enum { REDIS_PROCESS_RESPONSE_CLOSURE(resp_func, ctx) \ } +/* Case sensitive compare against compile-time static string */ +#define REDIS_STRCMP_STATIC(s, len, sstr) \ + (len == sizeof(sstr) - 1 && !strncmp(s, sstr, len)) + /* Case insensitive compare against compile-time static string */ #define REDIS_STRICMP_STATIC(s, len, sstr) \ (len == sizeof(sstr) - 1 && !strncasecmp(s, sstr, len)) @@ -263,7 +267,8 @@ typedef struct { php_stream_context *stream_ctx; zend_string *host; int port; - zend_string *auth; + zend_string *user; + zend_string *pass; double timeout; double read_timeout; long retry_interval; |