Snc\RedisBundle\Tests\Profiler\Storage\Mock\RedisMock::setex PHP Method

setex() public method

Store data at the server with expiration time.
public setex ( string $key, integer $ttl, mixed $value ) : boolean
$key string
$ttl integer
$value mixed
return boolean
    public function setex($key, $ttl, $value)
    {
        if (!$this->connected) {
            return false;
        }
        $this->storeData($key, $value);
        return true;
    }