X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fcpp_example.cc;h=b96aaf4e1c23bf7a838f5f7904dc619e3dbe65f2;hb=945be4901bee5aad1c6b62a12b9ac91e852f0405;hp=5454f0203512651c7fe392719b9351dc22e93cc9;hpb=35e6d2153f62a0c69d05c1702b44f3f8e5df5cd4;p=awesomized%2Flibmemcached diff --git a/tests/cpp_example.cc b/tests/cpp_example.cc index 5454f020..b96aaf4e 100644 --- a/tests/cpp_example.cc +++ b/tests/cpp_example.cc @@ -167,6 +167,7 @@ void setProduct(const string &key, const Product &product) int main() { +#if 0 Product pad(1, 5.0); const string key("padraig"); cout << "Going to set an object in the cache..." << endl; @@ -190,5 +191,12 @@ int main() cout << "product " << (*iter).getId() << " costs " << (*iter).getPrice() << endl; ++iter; } +#endif + Memcache first_client("127.0.0.1:11211"); + Memcache second_client("127.0.0.1", 11211); + //first_client.set("key", some_vector_of_chars, expiry, flags); + //first_client.get("key", vector_to_fill_with_data); + //first_client.remove("key"); + first_client.addServer("192.168.1.1", 11211); return 0; }