anime-db/shmop
Composer 安装命令:
composer require anime-db/shmop
包简介
Shmop is a simple and small abstraction layer for shared memory manipulation using PHP
README 文档
README
Shmop
Shmop is a simple and small abstraction layer for shared memory manipulation using PHP
Installation
Pretty simple with Composer, run:
composer require anime-db/shmop
Usage
Creating new block
use AnimeDb\Shmop\FixedBlock; $sh = new FixedBlock(0xFF /* id for memory block */, 3 /* memory block size */); $sh->write('foo'); echo $sh->read(); // print 'foo' $sh->delete();
Reading an existing block
use AnimeDb\Shmop\FixedBlock; $sh = new FixedBlock(0xFF, 3); // print contents of memory block. if block is not exists prints a blank line echo $sh->read();
License
This bundle is under the MIT license. See the complete license in the file: LICENSE
统计信息
- 总下载量: 1.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-02