]> git.saurik.com Git - redis.git/blobdiff - src/redis.h
Introduced three client limit classes: normal, slave, pubsub
[redis.git] / src / redis.h
index 430829755354614d1ec9f5bd8351db5e5c34757e..42ade8fc4fb726b1acaa1c49a0ef4c31f234792d 100644 (file)
 #define REDIS_REQ_INLINE 1
 #define REDIS_REQ_MULTIBULK 2
 
+/* Client classes for client limits, currently used only for
+ * the max-client-output-buffer limit implementation. */
+#define REDIS_CLIENT_LIMIT_CLASS_NORMAL 0
+#define REDIS_CLIENT_LIMIT_CLASS_SLAVE 1
+#define REDIS_CLIENT_LIMIT_CLASS_PUBSUB 2
+
 /* Slave replication state - slave side */
 #define REDIS_REPL_NONE 0 /* No active replication */
 #define REDIS_REPL_CONNECT 1 /* Must connect to master */