| 1 | <?php |
||
| 13 | class ConfigurableResponseCacheConfigurator implements ResponseCacheConfigurator |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * True if view cache is enabled, false if it is not. |
||
| 17 | * |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | private $enableViewCache; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * True if TTL cache is enabled, false if it is not. |
||
| 24 | * @var bool |
||
| 25 | */ |
||
| 26 | private $enableTtlCache; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Default ttl for ttl cache. |
||
| 30 | * |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | private $defaultTtl; |
||
| 34 | |||
| 35 | public function __construct($enableViewCache, $enableTtlCache, $defaultTtl) |
||
| 41 | |||
| 42 | public function enableCache(Response $response) |
||
| 50 | |||
| 51 | public function setSharedMaxAge(Response $response) |
||
| 59 | |||
| 60 | public function addTags(Response $response, $tags) |
||
| 68 | } |
||
| 69 |