Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2014-12-05 01:29:56 +0300
committermichael-grunder <michael.grunder@gmail.com>2015-05-06 01:05:30 +0300
commita271c4852cb1dd712fd14ea01ff90a38bf626558 (patch)
tree0c86c188fe9adf0ffe5c00b7b2db062299324955 /cluster_library.h
parent48e6e67a8286ac2aab95132763bc78af508b9e90 (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.h4
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;