PHP code example of ihipop / psr-null-cache
1. Go to this page and download the library: Download ihipop/psr-null-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/ */
ihipop / psr-null-cache example snippets
//...
if ($this->cache){
$this->cache->set($key,$value,$ttl);
}
//...
if ($this->cache){
$this->cache->get($key)
}
//...
///...
$logger = new \ihipop\PsrNullCache\SimpleCache\NullCache(false);
///...