iborodikhin/php-glue

Files storage scheme which «glues» couple of small files into several BLOBs.

dev-master 2016-03-07 15:44 UTC

This package is not auto-updated.

Last update: 2024-11-09 16:53:20 UTC


README

Build Status

Files storage scheme which «glues» couple of small files into several BLOBs

Usage

Create Glue instance:

$glue = new \Glue\Glue('/srv/data', 1); // creates 16 BLOBs in /srv/data
$glue->save('test_file', str_repeat('a', PHP_INT_MAX));
echo $glue->read('test_file');
$glue->delete('test_file');
$glue->compact();

Be sure data directory is writable by php process user.