PHP code example of dongasai / laravel-psr-6-cache

1. Go to this page and download the library: Download dongasai/laravel-psr-6-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/ */

    

dongasai / laravel-psr-6-cache example snippets


use EinarHansen\Cache\CacheItemPool;
use Illuminate\Contracts\Cache\Repository;
use Psr\Cache\CacheItemPoolInterface;

$this->app->singleton(CacheItemPoolInterface::class, function ($app) {
    return new CacheItemPool($app->make(Repository::class));
});