HF RL Explorer

We need a thread-safe client pool for concurrent memcache access. Currently, using a single memcache client…

We need a thread-safe client pool for concurrent memcache access. Currently, using a single memcache client…: a task in LegoFlow-SWE (Harbor dataset). C++ class ClientPool - Constructor: ClientPool() . - int init(const char const hosts, const uint32 t ports, const size t n, const char const…

The task

**C++ class `ClientPool`** - Constructor: `ClientPool()`. - `int init(const char* const* hosts, const uint32_t* ports, const size_t n, const char* const* aliases = NULL)` – initialise the pool with the given servers. - `Client* acquire()` – obtain a client from the pool. The returned client must support standard…

Part of Lego-X/LegoFlow-SWE.