#include #include #include #include "memcached.hh" using namespace std; int count = 0; const int SLOT_COUNT = 10; string produce() { stringstream oss; oss << "packet " << count++ << " produced on " << time(0) ; return oss.str(); } string gen_key(int i) { stringstream oss; oss << "slot:" << i; return oss.str(); } int main() { Memcached memc; memc.server_add("localhost"); unsigned int len; while (1) { for (int i=0; i