-
-
Notifications
You must be signed in to change notification settings - Fork 453
[V7˖] Migrating your code to the V8
Because the V8 is relatively not backward compatible with the V7, here's a guide to help you to migrate your code:
As of the V8 the mandatory minimum php version has been increased to 7.3+. Once released, the php version 8.0 will be unit-tested
As of the V8 the "Auto" driver in CacheManager::getInstance()
has been removed.
You will now be mandatory to specify the driver to use.
CacheManager::getInstance('Auto')
or CacheManager::getInstance()
expecting automatic driver chosen
Use CacheManager::getInstance('Files')
or CacheManager::getInstance('Redis')
or something else.
As of the V8 the "APC" has been removed. Use "APCu" instead.
CacheManager::getInstance('Apc')
CacheManager::getInstance('Apcu')
As of the V8 the "Xcache" has been removed, no replacement have been made.
It is completely abandoned (latest update: 2014)
Use alternative memory cache such as Redis, Memcache, Ssdb, etc.
CacheManager::getInstance('Apc')
CacheManager::getInstance('Apcu')
Check the CHANGELOG_API.md to see the changes.
As of the V8 the static I/O counter have been removed
Calling CacheManager::$ReadHits
, CacheManager::$WriteHits
Replaced by\Phpfastcache\Entities\DriverIO
callable in\Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface::getIO
As of the V8 the deprecated method CacheManager::setNamespacePath()
have been removed.
Calling CacheManager::setNamespacePath('some\custom\path')
Replaced by cache manager "override" or "custom driver" features introduced in V7
As of the V8 the deprecated method CacheManager::getStaticSystemDrivers()
have been removed.
Calling CacheManager::getStaticSystemDrivers()
Replaced by CacheManager::getDriverList()
More infos in our comprehensive changelog.
❓ Finally, if you need help, always check out the inevitable README.md