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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-02-22 23:25:15 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-03-19 23:35:41 +0300
commitb826234556be01c2cf9494be9b489bc2443c57f5 (patch)
tree0d5e865d02575bc0295ca93f9cc10e1253ce348f /common.h
parentc56ffc51b38d27d16760be0d778f50ff5d424b5d (diff)
Connection limit for pool.
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common.h b/common.h
index d4f7a4b8..11a434a4 100644
--- a/common.h
+++ b/common.h
@@ -734,9 +734,21 @@ typedef struct {
/* }}} */
typedef struct {
+ zend_llist list;
+ int nb_active;
+} ConnectionPool;
+
+#if (PHP_MAJOR_VERSION < 7)
+typedef struct {
+ zend_object std;
+ RedisSock *sock;
+} redis_object;
+#else
+typedef struct {
RedisSock *sock;
zend_object std;
} redis_object;
+#endif
/** Argument info for any function expecting 0 args */
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)