modify some redis samples

This commit is contained in:
zsx 2015-01-23 11:00:14 +08:00
parent ad009bb467
commit 78a639a4c2
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ static void test_expire(acl::redis_key& option, int n)
{
key.format("%s_%d", __keypre.c_str(), i);
option.reset();
if (option.set_expire(key.c_str(), 100) < 0)
if (option.expire(key.c_str(), 100) < 0)
{
printf("expire key: %s error\r\n", key.c_str());
break;

View File

@ -25,7 +25,7 @@ static bool test_expire(acl::redis_key& option, int i)
key.format("%s_%d", __keypre.c_str(), i);
option.reset();
if (option.set_expire(key.c_str(), 100) < 0)
if (option.expire(key.c_str(), 100) < 0)
{
printf("expire key: %s error\r\n", key.c_str());
return false;

View File

@ -25,7 +25,7 @@ static bool test_expire(acl::redis_key& option, int i)
key.format("%s_%d", __keypre.c_str(), i);
option.reset();
if (option.set_expire(key.c_str(), 100) < 0)
if (option.expire(key.c_str(), 100) < 0)
{
printf("expire key: %s error\r\n", key.c_str());
return false;