memcached test server
Dustin Sallings
dustin at spy.net
Tue Jul 10 19:45:20 UTC 2007
I've started on a test server framework. Currently, it just sends
responses with a status of 0 and the extra info ``hello'' I think
it's fairly extensible, though, as the backend implementation that
does that looks like this:
def processCommand(self, cmd, key, opaque, data):
print "Processing command %d with key ``%s'' and data ``%s''" \
% (cmd, key, data)
return 0, "Hello!"
My repo is here:
http://hg.west.spy.net/hg/python/memcached-test/
Let me know if anything looks terribly wrong (I hacked this together
quickly when I was supposed to doing real work). I've also got a
generic binary test client that's primarily useful for telling me
whether my server is doing what I expected.
My goal is to write a backend implementation that implements the
necessary commands and allows me to control the types of responses
that my client deals with. The backend is not capable of instructing
the lower level protocol handler to send garbage, but I'm hoping the
normal cases are covered.
--
Dustin Sallings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070710/b2878e5f/attachment.htm
More information about the memcached
mailing list