From fbfe58948b70597bcdff509af0a41d23b647846b Mon Sep 17 00:00:00 2001 From: Unbit Date: Wed, 23 Jan 2013 20:38:55 +0100 Subject: [PATCH] prepare for the --cache2 option --- core/cache.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/cache.c b/core/cache.c index 00df126a..bf97450b 100644 --- a/core/cache.c +++ b/core/cache.c @@ -863,7 +863,18 @@ void uwsgi_cache_create(char *arg) { char *c_hash = NULL; char *c_hashsize = NULL; char *c_store = NULL; - char *c_name = NULL; + + if (uwsgi_kvlist_parse(arg, strlen(arg), ',', '=', + "name", &c_name, + "max_items", &c_max_items, + "blocksize", &c_blocksize, + "blocks", &c_blocks, + "hash", &c_hash, + "hashsize", &c_hashsize, + "store", &c_store, + NULL)) { + return; + } } uwsgi_cache_init(uc);