PHP code example of vesica / cacher
1. Go to this page and download the library: Download vesica/cacher 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/ */
vesica / cacher example snippets
$cache = new \Vesica\Cacher\Redis($host, $port, $namespace);
// OR
$cache = new \Vesica\Cacher\Memcached($host, $port, $namespace);
$cache->set($key, $value);
$cache->get($key);
$cache->exists($key);