library cachefs
Filesystem wrapper that uses PSR-16 cache interface as storage
jacklul/cachefs
Filesystem wrapper that uses PSR-16 cache interface as storage
- Tuesday, May 15, 2018
- by jacklul
- Repository
- 1 Watchers
- 1 Stars
- 60 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 7 % Grown
CacheFS
Functional virtual filesystem that uses PSR-16 cache interface as storage, useful for testing or as persistent cache filesystem., (*1)
Based on vector-kerr/cachefs., (*2)
Installation
Install with Composer:, (*3)
$ composer require jacklul/cachefs
Usage
$memcached = new MemcachedAdapter(); // PSR-16 compatible interface
jacklul\CacheFS\CacheFS::register($memcached);
jacklul\CacheFS\CacheFS::register($memcached, 'myfilesystem'); // using custom stream name
// Write to 'text.txt' file
file_put_contents('cachefs://test.txt', 'test123');
// Create 'test' directory
mkdir('cachefs://test/');
// List root filesystem contents
print_r(scandir('cachefs://'));
License
See LICENSE., (*4)
dev-master
9999999-dev
Filesystem wrapper that uses PSR-16 cache interface as storage
Sources
Download
MIT
The Requires
The Development Requires
filesystem
cache
cachefs
dev-develop
dev-develop
Filesystem wrapper that uses PSR-16 cache interface as storage
Sources
Download
MIT
The Requires
The Development Requires
filesystem
cache
cachefs
0.1.0
0.1.0.0
Filesystem wrapper that uses PSR-16 cache interface as storage
Sources
Download
MIT
The Requires
The Development Requires
filesystem
cache
cachefs