We need Memcached example which should perfectly compile for gcc on Windows and Ubuntu, without any hassle of finding and linking libraries. You provide us solution that contains all in one folder, and smallest as possible.
For windows, we want a memcached DLL + a header file be created, in which there will be only 3 functions one for selecting server + port, others for setting and getting raw data. Following 3 functions shoudl be available in DLL for explicit linking.
void m_set_server(const char *server, int port);
void m_set_value(const char *key, void *val_in, int length_in);
void m_get_value(const char *key, void *val_out, int &length_out);
For Ubuntu linux, provide us simplest possible example for setting and getting values, example should work without any compiler errors, and that is it.
We need it urgently. The one who shows examples quick winds the project.
Let us know if you have any questions.
IMPORTANT: there should not be any memory leaks.