Send END after last get result

Sat, 31 Jul 2010 16:44:23 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 31 Jul 2010 16:44:23 +0100
changeset 1
1ec09b2f61c3
parent 0
73bc20975514
child 2
c5215e30b6ef

Send END after last get result

memcached.lua file | annotate | diff | comparison | revisions
--- a/memcached.lua	Sat Jul 31 16:09:11 2010 +0100
+++ b/memcached.lua	Sat Jul 31 16:44:23 2010 +0100
@@ -69,6 +69,7 @@
 			conn:write("VALUE "..key.." "..flags.." "..#data.."\r\n"..data.."\r\n");
 		end
 	end
+	conn:write("END\r\n");
 	return true;
 end
 

mercurial