PHP code example of sy / cache
1. Go to this page and download the library: Download sy/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/ */
sy / cache example snippets
use Sy\Cache\SimpleCache;
$cache = new SimpleCache(__DIR__);
$cache->set('array', ['one', 'two', 'three']);
$array = $cache->get('cache');