1 ====================================
2 Disconnecting a client from a server
3 ====================================
6 Disconnect from all servers
14 C Client Library for memcached (libmemcached, -lmemcached)
25 #include <libmemcached/memcached.h>
27 void memcached_quit (memcached_st *ptr);
36 memcached_quit() will disconnect you from all currently connected servers.
37 It will also reset the state of the connection (ie, any memcached_fetch() you
38 are in the middle of will be terminated). This function is called
39 automatically when you call memcached_free() on the \ ``memcached_st``\ structure.
41 You do not need to call this on your own. All operations to change server
42 hashes and parameters will handle connections to the server for you. This
43 function is provided mainly so that you can timeout your connections or
44 reset connections during the middle of a memcached_fetch().
52 A value of type \ ``memcached_return``\ is returned
53 On success that value will be \ ``MEMCACHED_SUCCESS``\ .
54 Use memcached_strerror() to translate this value to a printable string.
62 To find out more information please check:
63 `https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
71 Brian Aker, <brian@tangent.org>
78 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`