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:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-09-17 15:57:40 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-09-17 15:57:40 +0400
commitc55a28344594540eb8e626a789845fac2d39df2b (patch)
tree3928e1669e9ffc1d3dc4e2120b7eed8a0c0ca87b /php_redis.h
parente4adc956ad3aae8f67d49bb44f911f1cea567f9c (diff)
Refactoring
Diffstat (limited to 'php_redis.h')
-rwxr-xr-xphp_redis.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/php_redis.h b/php_redis.h
index 847ed1f5..edc71b46 100755
--- a/php_redis.h
+++ b/php_redis.h
@@ -167,7 +167,27 @@ PHPAPI void set_pipeline_current(zval *object, request_item *current);
ZEND_BEGIN_MODULE_GLOBALS(redis)
ZEND_END_MODULE_GLOBALS(redis)
-#define PHP_REDIS_VERSION "0.1"
+typedef enum {ATOMIC, MULTI, PIPELINE} redis_mode;
+
+struct redis_queued_item {
+
+ /* reading function */
+ zval * (*fun)(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, ...);
+
+ char *cmd;
+ int cmd_len;
+
+ struct redis_queued_item *next;
+};
+
+struct redis {
+ int fd;
+ redis_mode mode;
+ struct redis_queued_item *head;
+};
+
+
+#define PHP_REDIS_VERSION "2.0"
#endif