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

        redis.ltrim(mykey, 0, -2);
	} catch( RdException& e )
	{
		std::cout << "Redis exception:" << e.what() << std::endl;
	} catch( Poco::Exception& e )
	{
		std::cout << "Poco_exception:" << e.what() << std::endl;
	}
}
void TestLtrim( void )
{
	try
	{
		CRedisClient redis;
		redis.connect("127.0.0.1", 6379);
		string mykey = "key";

		uint64_t start = 1;
		uint64_t stop = 2;
		bool flag = redis.ltrim(mykey, start, stop);
		std::cout << flag << 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;
	}
}