void TestRpop( void )
{
	try
	{
		CRedisClient redis;
		redis.connect("127.0.0.1", 6379);
		string mykey = "key";

		std::string value;
        if ( !redis.rpop(mykey, value) )
        {
            std::cout << "rpop failed!!" << std::endl;
        }else
        {
            std::cout << "rpop successful!!" << std::endl;
            std::cout << value << std::endl;
        }
    } catch( RdException& e )
	{
		std::cout << "Redis exception:" << e.what() << std::endl;
	} catch( Poco::Exception& e )
	{
		std::cout << "Poco_exception:" << e.what() << std::endl;
	}
}
void TestRpop( void )
{
	try
	{

		CRedisClient redis;
		redis.connect("127.0.0.1", 6379);
		string mykey = "key";

		std::string value;
		bool flag = redis.rpop(mykey, value);
		std::cout << flag << std::endl;
		std::cout << value << std::endl;
	} catch( RdException& e )
	{
		std::cout << "Redis exception:" << e.what() << std::endl;
	} catch( Poco::Exception& e )
	{
		std::cout << "Poco_exception:" << e.what() << std::endl;
	}
}