PHP code example of validus / cache
1. Go to this page and download the library: Download validus/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/ */
validus / cache example snippets
use Psr\Cache\CacheItemPoolInterface;
use Psr\SimpleCache\CacheInterface;
// $pool instanceof CacheItemPoolInterface
$pool = $container->get(CacheItemPoolInterface::class);
// $cache instanceof CacheInterface
$cache = $container->get(CacheInterface::class);
$app->pipe(\Validus\Cache\Middleware\CacheResetMiddleware::class);