1MEMCACHED_QUIT(3) libmemcached-awesome MEMCACHED_QUIT(3)
2
3
4
6 memcached_quit - libmemcached Documentation
7
9 #include <libmemcached/memcached.h>
10 Compile and link with -lmemcached
11
12 void memcached_quit(memcached_st *ptr)
13
14 Parameters
15 ptr -- pointer to initialized memcached_st struct
16
18 memcached_quit() will disconnect you from all currently connected
19 servers. It will also reset the state of the connection (i.e., any
20 memcached_fetch() you are in the middle of will be terminated). This
21 function is called automatically when you call memcached_free() on the
22 memcached_st structure.
23
24 You do not need to call this on your own. All operations to change
25 server hashes and parameters will handle connections to the server for
26 you. This function is provided mainly so that you can timeout your con‐
27 nections or reset connections during the middle of a memcached_fetch().
28
30 A value of type memcached_return_t is returned On success that value
31 will be MEMCACHED_SUCCESS. Use memcached_strerror() to translate this
32 value to a printable string.
33
35 memcached(1) libmemcached(3) memcached_strerror(3)
36
37
38
39
401.1 Jul 20, 2023 MEMCACHED_QUIT(3)