Manages a pool of connections to a single Redis server.
More...
#include <simple_pool.h>
|
ptr_t | create (const std::string &host, unsigned int port) |
|
connection::ptr_t | get () |
| Get a working connection. More...
|
|
void | put (connection::ptr_t conn) |
| Put back a connection for reuse. More...
|
|
void | set_database (unsigned int value) |
| Set default database, all connection will be initialized selecting this database. More...
|
|
Manages a pool of connections to a single Redis server.
connection::ptr_t simple_pool::get |
( |
| ) |
|
Get a working connection.
- Returns
void simple_pool::put |
( |
connection::ptr_t |
conn | ) |
|
Put back a connection for reuse.
- Parameters
-
void redis3m::simple_pool::set_database |
( |
unsigned int |
value | ) |
|
|
inline |
Set default database, all connection will be initialized selecting this database.
- Parameters
-
The documentation for this class was generated from the following files: