when I use the incr and expire a new key in a pipeline,it return success,the use get comand ,it return false.

$pipe = $cur_redis->multi(Redis::PIPELINE); $pipe->incr($ref_times_key); $pipe->expire($ref_times_key, $this->getNextRefTimestamp() - time()); $rst=$pipe->exec();

$cur_redis->get($ref_times_key) #return false

Comment From: sundb

@spierman Can you give more information about this issue? 1. Is multi executed successfully? 2. What is the value of $this->getNextRefTimestamp() - time()?

Comment From: spierman

1.the two command all success response. 2.this is a second val >0.

3.the response is below: pipeline: [1,true] get : false

Comment From: spierman

is the our redis child class logic error