Skip to content

boekkooi/filesystem-adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filesystem PSR-6 Cache pool

Latest Stable Version codecov.io Build Status Total Downloads Monthly Downloads Software License

This is a PSR-6 cache implementation for Filesystem. It is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at www.php-cache.com.

This implementation is using the excellent Flysystem.

Install

composer require cache/filesystem-adapter

Configure

To create an instance of FilesystemCachePool you need to configure a Filesystem and its adapter.

use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Cache\Adapter\Filesystem\FilesystemCachePool;

$filesystemAdapter = new Local(__DIR__.'/');
$filesystem        = new Filesystem($filesystemAdapter);

$pool = new FilesystemCachePool($filesystem);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%