3 memcached_create, memcached_free
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
12 memcached_st *memcached_create(memcached_st *ptr);
13 void memcached_free(memcached_st *ptr);
18 memcached_create() is used to create a memcached_st structure that will then
19 be used by other libmemcached functions to communicate with the server. You
20 should either pass a statically declared memcached_st to memcached_create or
21 a NULL. If a NULL passed in then a structure is allocated for you.
23 To clean up memory associated with a memcached_st structure you should pass
24 it to memcached_free() when you are finished using it. memcached_free() is
25 the only way to make sure all memory is deallocated when you finish using
30 memcached_create() returns a pointer to the memcached_st that was created
31 (or initialized). On an allocation failure, it returns null.
35 To find out more information please check: http://tangent.org/552/libmemcached.html
39 Brian Aker, brian@tangent.org
43 memcached(1) libmemcached(3) memcached_strerror(3)