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

expire() public method

Sets an expiration time on an item.
public expire ( string $key, integer $ttl ) : boolean
$key string
$ttl integer
return boolean
    public function expire($key, $ttl)
    {
        if (!$this->connected) {
            return false;
        }
        if (isset($this->storage[$key])) {
            return true;
        }
        return false;
    }