PHP code example of wyrihaximus / react-cache-serialize
1. Go to this page and download the library: Download wyrihaximus/react-cache-serialize 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/ */
wyrihaximus / react-cache-serialize example snippets
$cache = new ArrayCache();
$jsonCache = new Serialize($cache);
$jsonCache->set('key', ['value']); // Store
$jsonCache->get('key')->then(function ($value) {
var_export($value);
/**
* a:1:{i:0;s:5:"value";}
*/
});