PHPackages                             jue/jsmemory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jue/jsmemory

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jue/jsmemory
============

mutli php process share memory

v0.0.0.5(8y ago)092PHP

Since Nov 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/masixun71/Jsmemory)[ Packagist](https://packagist.org/packages/jue/jsmemory)[ RSS](/packages/jue-jsmemory/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (6)Used By (0)

Jsmemory
========

[](#jsmemory)

##### 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.

[](#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的共享内存。封装了复杂使用，提供简化的方法进行调用。

[](#在单台服务器多进程中共享内容利用linux的共享内存封装了复杂使用提供简化的方法进行调用)

Rely
----

[](#rely)

- #### ext-msgpack

    [](#ext-msgpack)

note
====

[](#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.

[](#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
----------------

[](#linux-delete-shm)

```
ipcrm -m shmid

```

#### Set according to their own circumstances to delete

[](#set-according-to-their-own-circumstances-to-delete)

#### 根据自身情况设置删除

[](#根据自身情况设置删除)

Example
-------

[](#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'));

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

3089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b3c64e496bcef59a9a12a74f9383e80acd78ea2fa4836d6ddb8f7f8873b0b69?d=identicon)[masixun71](/maintainers/masixun71)

---

Top Contributors

[![masixun71](https://avatars.githubusercontent.com/u/18737991?v=4)](https://github.com/masixun71 "masixun71 (1 commits)")

### Embed Badge

![Health badge](/badges/jue-jsmemory/health.svg)

```
[![Health](https://phpackages.com/badges/jue-jsmemory/health.svg)](https://phpackages.com/packages/jue-jsmemory)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
