PHP code example of paillechat / apcu-simple-cache
1. Go to this page and download the library: Download paillechat/apcu-simple-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/ */
paillechat / apcu-simple-cache example snippets
$ttl = 1;
$cache = new ApcuCache();
$cache->set('foo', 'bar', $ttl);
$foo = $cache->get('foo');