1 Star 0 Fork 4

hkk / swoole-shared-memory

forked from 宇润 / swoole-shared-memory 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

swoole-shared-memory

Latest Version Php Version Swoole Version IMI License

介绍

Swoole Shared Memory ( 以下简称 SSM ) 是为了解决 Swoole 常驻内存场景,多进程变量共享问题而开发的组件。

SSM 直接支持任意变量的跨进程共享,它是通过序列化和反序列化实现的。不仅支持常用的 KV 操作,还支持StackQueuePriorityQueue数据结构操作。

SSM 通过 Unix Socket 内核通信,不走网卡,效率极高。无需预先定义空间大小、字段等,甚至可以与 fpm 项目进行变量共享 ( fpm 项目仅可作为客户端 )。

你只需要在 Swoole 自定义进程中启动 SSM 服务来监听 Unix Socket,或者也可以启动一个独立的 SSM 服务。

Composer

本项目可以使用composer安装,遵循psr-4自动加载规则,在你的 composer.json 中加入下面的内容:

{
    "require": {
        "yurunsoft/swoole-shared-memory": "~1.0"
    }
}

然后执行 composer update 安装。

文档

API 文档 (感谢码云提供服务)

QQ群:17916227 点击加群,如有问题会有人解答和修复。

运行环境

版权信息

Swoole Shared Memory 遵循 MIT 开源协议发布,并提供免费使用。

捐赠

开源不求盈利,多少都是心意,生活不易,随缘随缘……

The MIT License (MIT) Copyright (c) 2018 宇润 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Swoole Shared Memory (简称 SSM) 是为了解决 Swoole 常驻内存场景,多进程变量共享问题而开发的组件。 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/hkk2016/swoole-shared-memory.git
git@gitee.com:hkk2016/swoole-shared-memory.git
hkk2016
swoole-shared-memory
swoole-shared-memory
master

搜索帮助