mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 22:45:36 +01:00
Output result of testEcho
This commit is contained in:
parent
40f20421a8
commit
74b1ef2bb2
@ -83,8 +83,18 @@ void RedisTest::testEcho()
|
||||
command.add("ECHO");
|
||||
command.add("Hello World");
|
||||
|
||||
BulkString result;
|
||||
_redis.sendCommand(command, result);
|
||||
try
|
||||
{
|
||||
BulkString 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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user