PHP code example of soflomo / cache
1. Go to this page and download the library: Download soflomo/cache library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soflomo / cache example snippets
'service_manager' => array(
'abstract_factories' => array(
'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
),
),
bash
php public/index.php cache --list
bash
php public/index.php cache --status
bash
php public/index.php cache --status MyCacheServiceName
bash
php public/index.php cache --status --all
bash
php public/index.php cache --flush
bash
php public/index.php cache --flush MyCacheServiceName
bash
php public/index.php cache --flush --force
bash
php public/index.php cache --clear --expired
bash
php public/index.php cache --clear MyCacheServiceName --expired
bash
php public/index.php cache --clear --expired --force
bash
php public/index.php cache --clear --by-namespace=MyNamespace
bash
php public/index.php cache --clear MyCacheServiceName --by-namespace=MyNamespace
bash
php public/index.php cache --clear --force --by-namespace=MyNamespace
bash
php public/index.php cache --clear --by-prefix=MyPrefix
bash
php public/index.php cache --clear MyCacheServiceName --by-prefix=MyPrefix
bash
php public/index.php cache --clear --force --by-prefix=MyPrefix
bash
php public/index.php cache --clear-config
bash
php public/index.php cache --module-map