2 * Copyright (C) 2006-2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
8 * Summary: Connection pool implementation for libmemcached.
13 #ifndef __LIMEMCACHED_UTIL_POOL_H__
14 #define __LIMEMCACHED_UTIL_POOL_H__
16 #include <libmemcached/memcached.h>
22 struct memcached_pool_st
;
23 typedef struct memcached_pool_st memcached_pool_st
;
26 memcached_pool_st
*memcached_pool_create(memcached_st
* mmc
, uint32_t initial
,
29 memcached_st
* memcached_pool_destroy(memcached_pool_st
* pool
);
31 memcached_st
* memcached_pool_pop(memcached_pool_st
* pool
,
33 memcached_return_t
* rc
);
35 memcached_return_t
memcached_pool_push(memcached_pool_st
* pool
,
39 memcached_return_t
memcached_pool_behavior_set(memcached_pool_st
*ptr
,
40 memcached_behavior_t flag
,
43 memcached_return_t
memcached_pool_behavior_get(memcached_pool_st
*ptr
,
44 memcached_behavior_t flag
,
51 #endif /* __LIMEMCACHED_UTIL_POOL_H__ */