PHP code example of eufony / cache
1. Go to this page and download the library: Download eufony/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/ */
eufony / cache example snippets
// An in-memory cache pool using a PHP array.
$cache = new ArrayCache();
// An in-memory cache pool using the `apcu` extension,
// which can share cache values between processes on the same host.
$cache = new ApcuCache();
// A fake cache based on the Null Object Pattern.
$cache = new NullCache();
// Convert from PSR-6 to PSR-16.
$cache = new Psr16Adapter(/* ... */);
// Convert from PSR-16 to PSR-6.
$cache = new Psr6Adapter(/* ... */);