1. Go to this page and download the library: Download icybee/module-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/ */
icybee / module-cache example snippets
use ICanBoogie\Accessor\AccessorTrait;
abstract class CacheManagerAbstract implements Icybee\Modules\Cache\CacheManager
{
use AccessorTrait;
protected function get_config_preview()
{
// …
}
protected function get_editor()
{
// …
}
}
namespace Icybee\Modules\Views;
use Icybee\Modules\Cache\CacheCollection as CacheCollection;
class Hooks
{
// …
static public function on_cache_collection_collect(CacheCollection\CollectEvent $event, CacheCollection $collection)
{
$event->collection['icybee.views'] = new ViewCacheManager;
}
// …
}