0:73bc20975514 | 1:1ec09b2f61c3 |
---|---|
67 local flags, data = cache:get(key); | 67 local flags, data = cache:get(key); |
68 if flags then | 68 if flags then |
69 conn:write("VALUE "..key.." "..flags.." "..#data.."\r\n"..data.."\r\n"); | 69 conn:write("VALUE "..key.." "..flags.." "..#data.."\r\n"..data.."\r\n"); |
70 end | 70 end |
71 end | 71 end |
72 conn:write("END\r\n"); | |
72 return true; | 73 return true; |
73 end | 74 end |
74 | 75 |
75 logger.setwriter(function (name, level, format, ...) return print(name, level, format:format(...)); end); | 76 logger.setwriter(function (name, level, format, ...) return print(name, level, format:format(...)); end); |
76 | 77 |