承接 jue/jsmemory 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jue/jsmemory

Composer 安装命令:

composer require jue/jsmemory

包简介

mutli php process share memory

README 文档

README

In a single server to share content in multiple processes, the use of linux shared memory. Encapsulates complex uses and provides a simplified way to make calls.
在单台服务器多进程中共享内容,利用linux的共享内存。封装了复杂使用,提供简化的方法进行调用。

Rely

  • ext-msgpack

note

By default, the use of shared memory is for static data or basically does not change or change the less data, when the data changes, you need to manually delete the shared memory. The future will be extended automatically delete function.
默认情况下,共享内存的使用是针对于静态数据或者基本上不会变更或变更情况较少的数据,当数据有变更时,需要手动删除共享内存。未来会扩展释放删除功能。

linux delete shm

ipcrm -m shmid

Set according to their own circumstances to delete

根据自身情况设置删除

Example

class tt
{

    public $a;
    public $b;

    public function __construct($a, $b)
    {
        $this->a = $a;
        $this->b = $b;
    }

}


$storage = new Storage(0xff3,1000);


$sme = new Smemory($storage);

//$sme->set('a', '1233');
//$sme->set('b', new tt(1, 2));

var_dump($sme->get('a'));
var_dump($sme->get('b'));

统计信息

  • 总下载量: 92
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固