PHP code example of millennium / phpcache

1. Go to this page and download the library: Download millennium/phpcache 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/ */

    

millennium / phpcache example snippets




illennium\Cache\Cache;
use Millennium\Cache\Drivers\MemcacheDriver;

$test = array('1','2','3');

$driverTest1 = new Cache(new MemcacheDriver(array()));
$driverTest1->store("test", $test);
var_dump($driverTest1->fetch("test"));