Use the binary protocol for memcached.
authorTom Hughes <tom@compton.nu>
Fri, 6 Aug 2010 08:24:56 +0000 (08:24 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 6 Aug 2010 08:24:56 +0000 (08:24 +0000)
src/cache.c

index f974661..36f7d6c 100644 (file)
@@ -47,6 +47,8 @@ cache_connect(void)
   {
     memcached_server_st *server_list;
 
+    memcached_behavior_set(ptr, MEMCACHED_BEHAVIOR_BINARY_PROTOCOL, 1);
+
     server_list = memcached_servers_parse(servers);
 
     memcached_server_push(ptr, server_list);