| 1 | <?php |
||
| 14 | class Cache extends AbstractOptions |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Class used to instantiate the cache. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $class = 'Doctrine\Common\Cache\ArrayCache'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Namespace to prefix all cache ids with. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $namespace = ''; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Directory for file-based caching |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $directory; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Key to use for fetching the memcache, memcached, or redis instance from |
||
| 39 | * the service locator. Used only with Memcache. Memcached, and Redis. |
||
| 40 | * |
||
| 41 | * @var string|null |
||
| 42 | */ |
||
| 43 | protected $instance = null; |
||
| 44 | |||
| 45 | 3 | public function setClass(string $class) : self |
|
| 51 | |||
| 52 | 3 | public function getClass() : string |
|
| 56 | |||
| 57 | 1 | public function setInstance(string $instance) : self |
|
| 63 | |||
| 64 | 3 | public function getInstance() : ?string |
|
| 68 | |||
| 69 | 2 | public function setNamespace(string $namespace) : self |
|
| 75 | |||
| 76 | 3 | public function getNamespace() : string |
|
| 80 | |||
| 81 | public function setDirectory(string $directory) : self |
||
| 87 | |||
| 88 | public function getDirectory() : string |
||
| 92 | } |
||
| 93 |