You are here

public function RedisProfilerStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\RedisProfilerStorage::__construct()

Constructor.

Parameters

string $dsn A data source name:

string $username Not used:

string $password Not used:

int $lifetime The lifetime to use for the purge:

File

vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php, line 45

Class

RedisProfilerStorage
RedisProfilerStorage stores profiling information in Redis.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function __construct($dsn, $username = '', $password = '', $lifetime = 86400) {
  $this->dsn = $dsn;
  $this->lifetime = (int) $lifetime;
}