mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
Output result of testEcho
This commit is contained in:
@@ -83,8 +83,18 @@ void RedisTest::testEcho()
|
|||||||
command.add("ECHO");
|
command.add("ECHO");
|
||||||
command.add("Hello World");
|
command.add("Hello World");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
BulkString result;
|
BulkString result;
|
||||||
_redis.sendCommand(command, result);
|
_redis.sendCommand(command, result);
|
||||||
|
|
||||||
|
if ( ! result.isNull() )
|
||||||
|
std::cout << "Result: " << result.value() << std::endl;
|
||||||
|
}
|
||||||
|
catch(RedisException &e)
|
||||||
|
{
|
||||||
|
std::cout << e.message() << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RedisTest::testPing()
|
void RedisTest::testPing()
|
||||||
|
|||||||
Reference in New Issue
Block a user