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