Here is the modified tap python program (99.99% of it written by Dustin Stallings)
I just changed the opts variable to look like:
opts = {memcacheConstants.TAP_FLAG_DUMP: 0x0}
I am also attaching my memcacheConstants.py file as I believe I had to modify the variable TAP_FLAG_TYPES to look like:
TAP_FLAG_TYPES = {TAP_FLAG_BACKFILL: ">Q", TAP_FLAG_DUMP: ">Q"}
and I'm not sure if I added the TAP_FLAG_DUMP variable (I don't think so)
Finally I'm attaching a php script to be used to parse the output (since I'm more proficient in php).
The flow is like this:
1. python tap-dumpall.py > dump.txt
2. php parse_tap_output.php dump.txt someKey__or_key_prefix__to_find
Let me know if you have any questions...
--chad