if (\
in_array(\PHP_SAPI,
['cli', 'phpdbg'
], true
) && !
filter_var(\
ini_get('apc.enable_cli'
), \FILTER_VALIDATE_BOOL
)) { return $opcache;
} $apcu =
new ApcuAdapter($namespace,
intdiv($defaultLifetime, 5
),
$version);
if (null !==
$logger) { $apcu->
setLogger($logger);
} return new ChainAdapter([$apcu,
$opcache]);
} public static function createConnection(#[\SensitiveParameter] string $dsn, array $options = []): mixed
{ if (str_starts_with($dsn, 'redis:'
) ||
str_starts_with($dsn, 'rediss:'
)) { return RedisAdapter::
createConnection($dsn,
$options);
} if (str_starts_with($dsn, 'memcached:'
)) { return MemcachedAdapter::
createConnection($dsn,
$options);
} if (str_starts_with($dsn, 'couchbase:'
)) {