Phalcon\Session\Adapter\Database::gc PHP Метод

gc() публичный Метод

public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer
Результат boolean
    public function gc($maxlifetime)
    {
        $options = $this->getOptions();
        return $this->connection->execute(sprintf('DELETE FROM %s WHERE COALESCE(%s, %s) + %d < ?', $this->connection->escapeIdentifier($options['table']), $this->connection->escapeIdentifier($options['column_modified_at']), $this->connection->escapeIdentifier($options['column_created_at']), $maxlifetime), [time()]);
    }