## Main test
# Confirm, that Memcached service is installed and started in the test system
# Re-install In-Portal, confirm that on "Step 9 - System Configuration" these options are available choice for "Output Caching Engine" setting:
* on PHP7.*: Memcached
* on PHP5.*: Memcache
# Login to Administrative Console
# Go to {nav Tools > System Tools} section
# Confirm, that "Memory Cache" subsection is visible
## Testing auto-usage of Memcached on PHP 7+, when Memcache is configured to be used
# Configure Memcache to be used (ensure `$_CONFIG['Misc']['CacheHandler'] = 'Memcache';` in the `/system/config.php`)
# Stop Memcached service (e.g. use `service memcached stop` or other related command on server)
# Login to Administrative Console
# Go to {nav Tools > System Tools} section
# Confirm, that "Memory Cache" subsection is visible
## Code for kApplication fscade testing
```
$application->addCache('key', '1');
if ( $application->getCache('key') === '1' ) {
echo 'addCache is working<br>';
echo 'getCache is working<br>';
}
$application->setCache('key', '2');
if ( $application->getCache('key') === '2' ) {
echo 'setCache is working<br>';
}
$application->deleteCache('key');
if ( $application->getCache('key') === false ) {
echo 'deleteCache is working<br>';
}
exit;
```
# Place test code in the index.php, after `$application->Init();`
# Open home page.
# Confirm that output is:
* addCache is working
* getCache is working
* setCache is working
* deleteCache is working