PHPackages                             positron48/memorystorage - 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. [Caching](/categories/caching)
4. /
5. positron48/memorystorage

ActiveLibrary[Caching](/categories/caching)

positron48/memorystorage
========================

Classes for storing data in shared memory

v1.1.0(8mo ago)02.8k↓33.3%1GPL-3.0-or-laterPHPPHP ^8.0CI passing

Since Nov 29Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/positron48/MemoryStorage)[ Packagist](https://packagist.org/packages/positron48/memorystorage)[ RSS](/packages/positron48-memorystorage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

MemoryStorage
=============

[](#memorystorage)

[![CI](https://github.com/positron48/memorystorage/workflows/CI/badge.svg)](https://github.com/positron48/memorystorage/actions)

Library that will help you to store data in shared memory using PHP's System V shared memory functions.

Features
--------

[](#features)

- Store arrays of integers in shared memory
- Thread-safe access using semaphores
- Support for multiple independent storage instances
- Automatic memory management and cleanup
- Compatible with PHP 8.0, 8.1, 8.2, and 8.3

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- System V shared memory extension (`sysvsem`, `sysvshm`)
- `malkusch/lock` package for mutex functionality

Install
-------

[](#install)

```
composer require positron48/memorystorage
```

Usage
-----

[](#usage)

```
