Add typedef for SharedPtr<Client>

This commit is contained in:
fbraem
2015-11-20 18:34:37 +01:00
parent 065ec5c6e9
commit 4c239205d2

View File

@@ -72,6 +72,9 @@ class Redis_API Client
/// command << "list"; /// command << "list";
{ {
public: public:
typedef SharedPtr<Client> Ptr;
Client(); Client();
/// Default constructor. Use this when you want to /// Default constructor. Use this when you want to
/// connect later on. /// connect later on.
@@ -185,7 +188,7 @@ private:
void connect(); void connect();
/// Connects to the Redis server /// Connects to the Redis server
void connect(const Timespan& timeout); void connect(const Timespan& timeout);
/// Connects to the Redis server and sets a timeout. /// Connects to the Redis server and sets a timeout.