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); }; }