POCO Redis experiment ...

This commit is contained in:
fbraem
2015-10-20 20:39:17 +02:00
parent ee62025cc3
commit 9acd00e25a
18 changed files with 1324 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
//
// RedisTest.h
//
// $Id$
//
// Definition of the RedisTest class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef RedisTest_INCLUDED
#define RedisTest_INCLUDED
#include "Poco/Redis/Redis.h"
#include "Poco/Redis/Client.h"
#include "CppUnit/TestCase.h"
class RedisTest: public CppUnit::TestCase
{
public:
RedisTest(const std::string& name);
virtual ~RedisTest();
void testEcho();
void testPing();
void setUp();
void tearDown();
static CppUnit::Test* suite();
private:
std::string _host;
unsigned _port;
static bool _connected;
static Poco::Redis::Connection _redis;
};
#endif // RedisTest_INCLUDED