PHP code example of sacred / simple-cache-bridge
1. Go to this page and download the library: Download sacred/simple-cache-bridge 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/ */
sacred / simple-cache-bridge example snippets
use Sacred\Cached\SimpleCacheFromCacheItemPool;
$psr6Cache = new AnyPSR6CacheItemPool();
$simpleCache = new SimpleCacheFromCacheItemPool($psr6Cache);
$simpleCache->set('key','some-data');
$value = $simpleCache->get('key'); // some-data