]> git.openstreetmap.org Git - rails.git/commitdiff
Don't use the binary memcache protocol
authorTom Hughes <tom@compton.nu>
Thu, 23 Feb 2012 21:42:33 +0000 (21:42 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 27 Feb 2012 09:01:48 +0000 (09:01 +0000)
The binary protocol appears to offer no perforance advantage and
doesn't support pipelining of requests.

lib/mem_cache.rb

index 269b0c3d634bda50ba7c0ea44c6a04365a7fa570..ddb842b533aa57fae216633960d4c94c1f569d10 100644 (file)
@@ -6,7 +6,7 @@ class MemCache < Memcached::Rails
   @@connections = []
 
   def initialize(options = {})
-    options.reverse_merge! :binary_protocol => true, :namespace_separator => ":"
+    options.reverse_merge! :namespace_separator => ":"
 
     super(MEMCACHE_SERVERS, options)