PHP code example of sabre / cache

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

    

sabre / cache example snippets


$cache = new \Sabre\Cache\Memory();

$cache = new \Sabre\Cache\Apcu();

$memcached = new \Memcached();
$memcached->addServer('127.0.0.1', 11211);
$cache = new \Sabre\Cache\Memcached($memcached);