| 1 | <?php |
||
| 11 | final class CacheFactory |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $name The name of the cache object to make. |
||
| 15 | * @param array $config Options to use when constructing the cache. |
||
| 16 | * |
||
| 17 | * @return CacheInterface |
||
| 18 | */ |
||
| 19 | public static function make(string $name, array $config) : CacheInterface |
||
| 35 | |||
| 36 | private static function getMongoCache(array $config) : MongoCache |
||
| 40 | |||
| 41 | private static function getMongoCollectionFromConfig(array $config) : MongoDB\Collection |
||
| 52 | } |
||
| 53 |