#include #include "../memcache-lite.h" int main() { const char path[] = "/tmp/socket"; memcache_state_t *state; memcache_result_t *result = memcache_result_new(); state = memcache_initialize(); memcache_connect(state, path); memcache_get(state, "test", result); if (memcache_result_found(result)) printf("match:\"%s\"\n", memcache_result_data(result)); else printf("no match\n"); return 0; }