2017-02-23 20:39:57 +01:00
|
|
|
<?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.
|
|
|
|
*
|
2017-03-09 23:20:58 +01:00
|
|
|
* @param string $service
|
|
|
|
* @param array $params
|
2017-02-23 20:39:57 +01:00
|
|
|
* @return CacheInterface
|
|
|
|
*/
|
|
|
|
public function create($service, array $params = array());
|
|
|
|
}
|