iborodikhin/php-glue

文件存储方案,将多个小文件“粘合”成几个BLOB。

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

This package is not auto-updated.

Last update: 2024-09-14 16:03:18 UTC


README

Build Status

文件存储方案,将多个小文件“粘合”成几个BLOB

用法

创建Glue实例

$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();

确保数据目录可由php进程用户写入。