Name: flysystem-memory
Owner: The League of Extraordinary Packages
Description: Flysystem Memory Adapter
Created: 2015-06-26 17:51:08.0
Updated: 2018-01-08 12:27:07.0
Pushed: 2017-09-29 20:43:04.0
Homepage: null
Size: 32
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This adapter keeps the filesystem in memory. It's useful when you need a filesystem, but do not need it persisted.
oser require league/flysystem-memory
League\Flysystem\Filesystem;
League\Flysystem\Memory\MemoryAdapter;
esystem = new Filesystem(new MemoryAdapter());
esystem->write('new_file.txt', 'yay a new text file!');
tents = $filesystem->read('new_file.txt');
xplicitly set timestamp (e.g. for testing)
esystem->write('old_file.txt', 'very old content', ['timestamp' => 13377331]);