|
1 | | -@todo :) |
| 1 | +Because the V8 is **relatively** not backward compatible with the V7, here's a guide to help you to migrate your code: |
| 2 | + |
| 3 | +### :warning: Minimum php version increased to 7.3+ |
| 4 | +As of the V8 the mandatory minimum php version has been increased to 7.3+. |
| 5 | +Once released, the php version 8.0 will be unit-tested |
| 6 | + |
| 7 | +### :warning: "Auto" driver removed |
| 8 | +As of the V8 the "Auto" driver in `CacheManager::getInstance()` has been removed.\ |
| 9 | +You will now be mandatory to specify the driver to use. |
| 10 | + |
| 11 | +#### :clock1: Then: |
| 12 | +`CacheManager::getInstance('Auto')` or `CacheManager::getInstance()` expecting automatic driver chosen |
| 13 | + |
| 14 | +#### :alarm_clock: Now: |
| 15 | +Use `CacheManager::getInstance('Files')` or `CacheManager::getInstance('Redis')` or something else. |
| 16 | + |
| 17 | +### Removal of "APC" driver |
| 18 | +As of the V8 the "APC" has been removed. Use "APCu" instead. |
| 19 | + |
| 20 | +#### :clock1: Then: |
| 21 | +`CacheManager::getInstance('Apc')` |
| 22 | + |
| 23 | +#### :alarm_clock: Now: |
| 24 | +`CacheManager::getInstance('Apcu')` |
| 25 | + |
| 26 | +### Removal of "Xcache" driver |
| 27 | +As of the V8 the "Xcache" has been removed, no replacement have been made.\ |
| 28 | +It is [completely abandoned](https://xcache.lighttpd.net/) (latest update: 2014) |
| 29 | +Use alternative memory cache such as Redis, Memcache, Ssdb, etc. |
| 30 | + |
| 31 | +#### :clock1: Then: |
| 32 | +`CacheManager::getInstance('Apc')` |
| 33 | + |
| 34 | +#### :alarm_clock: Now: |
| 35 | +`CacheManager::getInstance('Apcu')` |
| 36 | + |
| 37 | +### Phpfastcache API has been upgraded to 3.0.0 |
| 38 | +Check `CHANGELOG_API.md` to see the changes |
| 39 | + |
| 40 | +### Phpfastcache API has been upgraded to 3.0.0 |
| 41 | +Check `CHANGELOG_API.md` to see the changes |
| 42 | + |
| 43 | +### Removal of static counters |
| 44 | +As of the V8 the static I/O counter have been removed |
| 45 | + |
| 46 | +#### :clock1: Then: |
| 47 | +Calling `CacheManager::$ReadHits`, `CacheManager::$WriteHits` |
| 48 | + |
| 49 | +#### :alarm_clock: Now: |
| 50 | +Replaced by`\Phpfastcache\Entities\DriverIO` callable in`\Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface::getIO` |
| 51 | + |
| 52 | +### Removal of deprecated method `CacheManager::setNamespacePath()` |
| 53 | +As of the V8 the deprecated method `CacheManager::setNamespacePath()` have been removed. |
| 54 | + |
| 55 | +#### :clock1: Then: |
| 56 | +Calling `CacheManager::setNamespacePath('some\custom\path')` |
| 57 | + |
| 58 | +#### :alarm_clock: Now: |
| 59 | +Replaced by cache manager "override" or "custom driver" features introduced in V7 |
| 60 | + |
| 61 | +### Removal of deprecated method `CacheManager::getStaticSystemDrivers()` |
| 62 | +As of the V8 the deprecated method `CacheManager::getStaticSystemDrivers()` have been removed. |
| 63 | + |
| 64 | +#### :clock1: Then: |
| 65 | +Calling `CacheManager::getStaticSystemDrivers()` |
| 66 | + |
| 67 | +#### :alarm_clock: Now: |
| 68 | +Replaced by `CacheManager::getDriverList()` |
| 69 | + |
| 70 | +------ |
| 71 | +More infos in our comprehensive [changelog](./../../CHANGELOG.md). |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
0 commit comments