Add setReceiveTimeout

This commit is contained in:
fbraem
2015-11-02 22:09:21 +01:00
parent c135c87b1d
commit cbb45f5b25

View File

@@ -143,6 +143,8 @@ public:
/// Sends all commands (pipelining) to the Redis server before /// Sends all commands (pipelining) to the Redis server before
/// getting all replies. /// getting all replies.
void setReceiveTimeout(const Timespan& timeout);
private: private:
Client(const Client&); Client(const Client&);
@@ -176,6 +178,11 @@ void Client::execute<void>(const Array& command)
writeCommand(command); writeCommand(command);
} }
inline void Client::setReceiveTimeout(const Timespan& timeout)
{
_socket.setReceiveTimeout(timeout);
}
} } // namespace Poco::Redis } } // namespace Poco::Redis