Giter Site home page Giter Site logo

yurunsoft / swoole-shared-memory Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 3.0 166 KB

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

Home Page: https://gitee.com/yurunsoft/swoole-shared-memory

License: MIT License

PHP 100.00%
php swoole sharedmemory

swoole-shared-memory's Introduction

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 开源协议发布,并提供免费使用。

捐赠

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

swoole-shared-memory's People

Contributors

nhzex avatar yurunsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swoole-shared-memory's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.