PHP code example of blitz-php / cache
1. Go to this page and download the library: Download blitz-php/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/ */
blitz-php / cache example snippets
use BlitzPHP\Cache\Cache;
$cache = new Cache([
'handler' => 'redis',
'fallback_handler' => 'file'
]);
// Set cache key
$cache->set($key, $value)
// Get cache key
$value = $cache->get($key)