mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 11:57:43 +08:00
modify some redis samples
This commit is contained in:
parent
ad009bb467
commit
78a639a4c2
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user