PHP code example of wyrihaximus / react-cache-filesystem

1. Go to this page and download the library: Download wyrihaximus/react-cache-filesystem 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-filesystem example snippets




use React\EventLoop\Factory as LoopFactory;
use React\Filesystem\Filesystem as ReactFilesystem;
use WyriHaximus\React\Cache\Filesystem;

$loop = LoopFactory::create();
$filesystem = ReactFilesystem::create($loop);
$cache = new Filesystem($filesystem, '/tmp/cache/location/');