| 1 | <?php |
||
| 14 | trait HasCacheStoreTrait |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param $adapter |
||
| 18 | * @param $config |
||
| 19 | */ |
||
| 20 | 2 | protected function checkForCacheNeeded(&$adapter, &$config) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param $adapter |
||
| 30 | * @param $cache |
||
| 31 | * @return CachedAdapter |
||
| 32 | */ |
||
| 33 | 1 | protected function createCacheAdapter($adapter, $cache) |
|
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * Create a cache store instance. |
||
| 41 | * |
||
| 42 | * @param mixed $config |
||
| 43 | * @return \League\Flysystem\Cached\CacheInterface|MemoryStore|Cache |
||
| 44 | * |
||
| 45 | * @throws \InvalidArgumentException |
||
| 46 | */ |
||
| 47 | 1 | protected function createCacheStore($config) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @return mixed |
||
| 64 | */ |
||
| 65 | protected function getCacheManager() |
||
| 69 | } |
||
| 70 |