Jackalope\Transport\DoctrineDBAL\CachedClient::__construct PHP Метод

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

public __construct ( Jackalope\FactoryInterface $factory, Doctrine\DBAL\Connection $conn, array $caches = [] )
$factory Jackalope\FactoryInterface
$conn Doctrine\DBAL\Connection
$caches array
    public function __construct(FactoryInterface $factory, Connection $conn, array $caches = array())
    {
        parent::__construct($factory, $conn);
        $caches['meta'] = isset($caches['meta']) ? $caches['meta'] : new ArrayCache();
        $this->caches = $caches;
        $this->keySanitizer = function ($cacheKey) {
            return str_replace(' ', '_', $cacheKey);
        };
    }