for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Linna Framework.
*
* @author Sebastian Rapetti <[email protected]>
* @copyright (c) 2018, Sebastian Rapetti
* @license http://opensource.org/licenses/MIT MIT License
*/
declare(strict_types=1);
namespace Linna\Cache;
use Linna\Storage\AbstractStorageFactory;
use Psr\SimpleCache\CacheInterface;
* Storage Factory.
class CacheFactory extends AbstractStorageFactory
{
* @var array<mixed> Factory supported driver
protected array $supportedDriver = [
'disk' => DiskCache::class,
'memcached' => MemcachedCache::class,
];
* Return Cache Resource.
* @return CacheInterface
public function get(): CacheInterface
return $this->returnStorageObject();
}