Merge in updates to examples.
[awesomized/libmemcached] / libmemcached / options / parser.yy
index 0f0aee65a459115f6da1f104b3198888bde67029..02679883a6c4b3f67c23a10633c0e66f8ff15b8f 100644 (file)
@@ -108,6 +108,10 @@ inline void config_error(Context *context, yyscan_t *scanner, const char *error)
 /* Callbacks */
 %token NAMESPACE
 
+/* Pool */
+%token POOL_MIN
+%token POOL_MAX
+
 /* Hash types */
 %token MD5
 %token CRC
@@ -210,6 +214,14 @@ expression:
           {
             memcached_set_configuration_file(context->memc, $2.c_str, $2.length);
           }
+        | POOL_MIN NUMBER
+          {
+            context->memc->configure.initial_pool_size= $2;
+          }
+        | POOL_MAX NUMBER
+          {
+            context->memc->configure.max_pool_size= $2;
+          }
         | behaviors
         ;