PHP code example of cajogos / php-temp-cache
1. Go to this page and download the library: Download cajogos/php-temp-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/ */
cajogos / php-temp-cache example snippets
// $expire is time in seconds for validity.
TempCache::put($key, $value, $expire);
TempCache::get($key);
TempCache::remove($key);
use Cajogos\TempCache as TempCache;