| 1 | <?php |
||
| 15 | class CacheFactory |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @return ArrayCache |
||
| 19 | */ |
||
| 20 | public static function arrayCache() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param $host |
||
| 27 | * @param $port |
||
| 28 | * @param int $db |
||
| 29 | * @param float $timeOut |
||
| 30 | * |
||
| 31 | * @return RedisCache |
||
| 32 | */ |
||
| 33 | public static function redis($host, $port, $db = 0, $timeOut = 0.0) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param Redis $redis |
||
| 44 | * |
||
| 45 | * @return RedisCache |
||
| 46 | */ |
||
| 47 | public function redisFromInstance(Redis $redis) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param Cache $cache |
||
| 54 | * |
||
| 55 | * @return TestCacheDecorator |
||
| 56 | */ |
||
| 57 | public static function decorateForTesting(Cache $cache) |
||
| 61 | } |
||
| 62 |