PHP code example of parshikovpavel / psr-cache-adapter

1. Go to this page and download the library: Download parshikovpavel/psr-cache-adapter 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/ */

    

parshikovpavel / psr-cache-adapter example snippets


use ppCache\Psr6ToPsr16Adapter;

/* Creating an instance of some PSR-6 pool  */

/** @var \Psr\Cache\CacheItemPoolInterface $psr6 */
$psr6 = new SomeCacheItemPool();

/* Adapting it to the PSR-16 simple cache interface */
$psr16 = new Psr6ToPsr16Adapter($psr6);