1 | <?php |
||
20 | class CacheServiceDecorator |
||
21 | { |
||
22 | const SPI_CACHE_KEY_PREFIX = 'ez_spi'; |
||
23 | |||
24 | /** |
||
25 | * @var \Stash\Interfaces\PoolInterface |
||
26 | */ |
||
27 | protected $cachePool; |
||
28 | |||
29 | /** |
||
30 | * Constructs the cache service decorator. |
||
31 | * |
||
32 | * @param \Stash\Interfaces\PoolInterface $cachePool |
||
33 | */ |
||
34 | public function __construct(PoolInterface $cachePool) |
||
38 | |||
39 | /** |
||
40 | * Returns a Cache item for the specified key. The key can be either a series of string arguments, |
||
41 | * or an array. |
||
42 | * |
||
43 | * @internal param array|string $key , $key, $key... |
||
44 | * |
||
45 | * @return \Stash\Interfaces\ItemInterface |
||
46 | */ |
||
47 | public function getItem() |
||
62 | |||
63 | /** |
||
64 | * Clears the cache for the key, or if none is specified clears the entire cache. The key can be either |
||
65 | * a series of string arguments, or an array. |
||
66 | * |
||
67 | * @internal param array|null|string $key , $key, $key... |
||
68 | */ |
||
69 | public function clear() |
||
75 | } |
||
76 |