for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Micro framework package.
*
* (c) Stanislau Komar <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Micro\Plugin\Cache\Business\Adapter\Concrete;
use Micro\Plugin\Cache\Business\Adapter\ConcreteAdapterFactoryInterface;
use Micro\Plugin\Cache\Configuration\Adapter\CachePoolConfigurationInterface;
use Psr\Cache\CacheItemPoolInterface;
use Symfony\Component\Cache\Adapter\ApcuAdapter;
class ApcuFactory implements ConcreteAdapterFactoryInterface
{
public function create(CachePoolConfigurationInterface $configuration): CacheItemPoolInterface
return new ApcuAdapter(
$configuration->getNamespace(),
$configuration->getDefaultLifetime(),
$configuration->getVersion(),
);
}
public function type(): string
return 'apcu';