mirror of
https://github.com/KingDuckZ/incredis
synced 2024-12-27 21:35:42 +00:00
28 lines
532 B
C++
28 lines
532 B
C++
#include <cstdint>
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
namespace redis {
|
|
class IncRedis;
|
|
} //namespace redis
|
|
|
|
namespace incredis {
|
|
namespace test {
|
|
class RedisConnectionFixture {
|
|
public:
|
|
RedisConnectionFixture();
|
|
~RedisConnectionFixture() noexcept;
|
|
|
|
redis::IncRedis& incredis();
|
|
|
|
private:
|
|
bool use_socket_connection() const;
|
|
|
|
std::unique_ptr<redis::IncRedis> m_incredis;
|
|
std::string m_hostname;
|
|
std::string m_socket;
|
|
uint32_t m_db;
|
|
uint16_t m_port;
|
|
};
|
|
} //namespace test
|
|
} //namespac incredis
|