mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-28 15:39:40 +02:00
21 lines
584 B
PHP
21 lines
584 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Core\Cache;
|
|
|
|
use Psr\SimpleCache\CacheInterface;
|
|
use SilverStripe\Core\Injector\Factory as InjectorFactory;
|
|
|
|
interface CacheFactory extends InjectorFactory
|
|
{
|
|
|
|
/**
|
|
* Note: While the returned object is used as a singleton (by the originating Injector->get() call),
|
|
* this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.
|
|
*
|
|
* @param string $class
|
|
* @param array $args
|
|
* @return CacheInterface
|
|
*/
|
|
public function create($service, array $params = array());
|
|
}
|