diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-12-05 01:29:56 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:05:30 +0300 |
commit | a271c4852cb1dd712fd14ea01ff90a38bf626558 (patch) | |
tree | 0c86c188fe9adf0ffe5c00b7b2db062299324955 /cluster_library.h | |
parent | 48e6e67a8286ac2aab95132763bc78af508b9e90 (diff) |
Initial commit incorporating a "readonly" flag.
We may want to configure phpredis such that it will attempt to fall back
to a given master's slave, if the master were to go down (and the command
is read only).
Diffstat (limited to 'cluster_library.h')
-rw-r--r-- | cluster_library.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cluster_library.h b/cluster_library.h index 162b0d30..69de5020 100644 --- a/cluster_library.h +++ b/cluster_library.h @@ -185,6 +185,10 @@ typedef struct redisCluster { /* How long in milliseconds should we wait when being bounced around */ long waitms; + /* Are we flagged as being in readonly mode, meaning we could fall back to + * a given master's slave */ + short readonly; + /* Hash table of seed host/ports */ HashTable *seeds; |