1 .TH "MEMCACHED_POOL_ST" "3" "September 18, 2011" "0.52" "libmemcached"
3 memcached_pool_st \- libmemcached Documentation
5 .nr rst2man-indent-level 0
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17 .\" .rstReportMargin pre:
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31 .\" Man page generated from reStructeredText.
35 #include <libmemcached/memcached_pool.h>
42 .B \fI\%memcached_pool_st\fP* memcached_pool(const char\fI\ *option_string\fP, size_t\fI\ option_string_length\fP)
46 .B \fI\%memcached_pool_st\fP* memcached_pool_create(memcached_st*\fI\ mmc\fP, int\fI\ initial\fP, int\fI\ max\fP)
49 Deprecated since version 0.46: Use \fI\%memcached_pool()\fP instead.
52 .B memcached_st* memcached_pool_destroy(\fI\%memcached_pool_st\fP*\fI\ pool\fP)
56 .B memcached_st* memcached_pool_pop(\fI\%memcached_pool_st\fP*\fI\ pool\fP, bool\fI\ block\fP, memcached_return_t\fI\ *rc\fP)
60 .B memcached_return_t memcached_pool_push(\fI\%memcached_pool_st\fP*\fI\ pool\fP, memcached_st\fI\ *mmc\fP)
64 .B memcached_return_t memcached_pool_behavior_set(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ data\fP)
68 .B memcached_return_t memcached_pool_behavior_get(\fI\%memcached_pool_st\fP\fI\ *pool\fP, memcached_behavior_t\fI\ flag\fP, uint64_t\fI\ *value\fP)
71 Compile and link with \-lmemcachedutil \-lmemcached
74 \fI\%memcached_pool()\fP is used to create a connection pool of objects you
75 may use to remove the overhead of using memcached_clone for short lived
76 \fBmemcached_st\fP objects. Please see \fBlibmemcached_configuration\fP for details on the format of the configuration string.
78 \fI\%memcached_pool_destroy()\fP is used to destroy the connection pool
79 created with \fI\%memcached_pool_create()\fP and release all allocated
80 resources. It will return the pointer to the \fBmemcached_st\fP structure
81 passed as an argument to \fI\%memcached_pool_create()\fP, and returns the ownership of the pointer to the caller when created with \fI\%memcached_pool_create()\fP, otherwise NULL is returned..
83 \fI\%memcached_pool_pop()\fP is used to grab a connection structure from the
84 connection pool. The block argument specifies if the function should
85 block and wait for a connection structure to be available if we try
86 to exceed the maximum size.
88 \fI\%memcached_pool_push()\fP is used to return a connection structure back to the pool.
90 \fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_set()\fP is used to get/set behavior flags on all connections in the pool.
93 \fI\%memcached_pool_destroy()\fP returns the pointer (and ownership) to the \fBmemcached_st\fP structure used to create the pool. If connections are in use it returns NULL.
95 \fI\%memcached_pool_pop()\fP returns a pointer to a \fBmemcached_st\fP structure from the pool (or NULL if an allocation cannot be satisfied).
97 \fI\%memcached_pool_push()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
99 \fI\%memcached_pool_behavior_get()\fP and \fI\%memcached_pool_behavior_get()\fP returns \fBMEMCACHED_SUCCESS\fP upon success.
102 To find out more information please check:
103 \fI\%http://libmemcached.org/\fP
106 Brian Aker, <\fI\%brian@tangent.org\fP>
108 Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
111 \fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP \fIlibmemcached_configuration(3)\fP
115 2011, Brian Aker DataDifferential, http://datadifferential.com/
116 .\" Generated by docutils manpage writer.