PHP code example of tinson / memory-cache
1. Go to this page and download the library: Download tinson/memory-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/ */
tinson / memory-cache example snippets
# New an cache instance
# 构建一个实例
$cache = new \MemoryCache\Cache();
$cache->set($key, $value, $ttle);
$cache->get($key);