PHPackages                             suvera/winter-memdb - 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. suvera/winter-memdb

ActiveLibrary[Caching](/categories/caching)

suvera/winter-memdb
===================

Winter Memdb module supports many In memory databases, such as Apache Ignite, Redis, Memcached etc..

20PHP

Since Jul 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/suvera/winter-memdb)[ Packagist](https://packagist.org/packages/suvera/winter-memdb)[ RSS](/packages/suvera-winter-memdb/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

WinterBoot Module - Memdb
=========================

[](#winterboot-module---memdb)

Winter Memory DB (memdb) is a module that provides in-memory database engines integrated into [winter-boot](https://github.com/suvera/winter-boot) framework.

Following databases maybe integrated, Auto-started on application startup and stopped upon application stop.

- Redis
- Apache Ignite
- Hazelcast
- Memcached
- RocksDB
- H2

Setup
-----

[](#setup)

1. This requires `swoole` php extension

```
composer require suvera/winter-memdb
```

To enable Memdb module in applications, append following code to **application.yml**

```
modules:
    -   module: dev\winterframework\memdb\MemdbModule
        enabled: true
        configFile: memdb-config.yml
```

**configFile** is a file path (relative to config dir or absolute path)

memdb-config.yml
----------------

[](#memdb-configyml)

```
# Redis
redis:
# Redis Configuration here, see below section

# Apache Ignite
ignite:
# Apache Ignite Configuration here

# Memcached
memcached:
# Memcached Configuration here

# Hazelcast
hazelcast:
# Hazelcast Configuration here
```

### 1. Redis

[](#1-redis)

Redis configuration

```
redis:
    -   name: redisServerBean01
        serverBinary: /usr/local/bin/redis-server
        confFile: redis_1.conf  # relative or absolute path
        args: ""
```

- Many number of server configurations allowed.
- Client Beans will be auto-created by framework by given name. ex: "redisServerBean01"

```
#[Autowired('redisServerBean01')]
private PhpRedisTemplate $redis;
```

### 2. Apache Ignite

[](#2-apache-ignite)

Apache Ignite configuration

```
ignite:
    -   name: igniteServerBean01
        serverBinary: /etc/apache-ignite-2.10.0/bin/ignite.sh
        # Optional config
        confFile: ignite-config.xml  # relative or absolute path
        args: ""
```

- Many number of server configurations allowed.
- Client Beans will be auto-created by framework by given name. ex: "igniteServerBean01"

```
#[Autowired('igniteServerBean01')]
private IgniteCacheTemplate $ignite;
```

### 3. Memcached

[](#3-memcached)

- This requires `memcached` or `memcache` php extension

Memcached configuration.

```
memcached:
    -   name: memcachedServerBean01
        serverBinary: /usr/bin/memcached
        host: 127.0.0.1
        port: 11211
        udpPort: 0
        unixSocket:
        pidfile: "/var/run/memcached_1.pid"
        args: "-u memcached "
```

- Many number of server configurations allowed.
- Client Beans will be auto-created by framework by given name. ex: "memcachedServerBean01"

```
// `memcached` php extension installed
#[Autowired('memcachedServerBean01')]
private MemcachedTemplate $memcached;

// OR

//  if `memcache` php extension installed
#[Autowired('memcacheBean02')]
private MemcacheTemplate $memcache;
```

### 4. Hazelcast

[](#4-hazelcast)

- Hazelcast needs `memcached` php extension as a client

```
pecl install memcached
```

Hazelcast configuration.

```
hazelcast:
    -   name: hazelcastBean01
        serverBinary: etc/hazelcast-4.2.1/bin/start.sh
        confFile: /etc/hazelcast/config/hazelcast.xml
        bootUpTimeMs: 300
        args: ""
```

- Many number of server configurations allowed.
- Client Beans will be auto-created by framework by given name. ex: "hazelcastBean01"

```
#[Autowired('hazelcastBean01)]
private MemcachedTemplate $hazelcast;
```

> Note: Hazelcast configuration need memcache enabled. see it here

```

    ...

    ...

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd0d45481a96c237498933de2904bc7cb1bc00ffab86248795f1e0ad704ee769?d=identicon)[suvera](/maintainers/suvera)

---

Top Contributors

[![suvera](https://avatars.githubusercontent.com/u/3530406?v=4)](https://github.com/suvera "suvera (6 commits)")

### Embed Badge

![Health badge](/badges/suvera-winter-memdb/health.svg)

```
[![Health](https://phpackages.com/badges/suvera-winter-memdb/health.svg)](https://phpackages.com/packages/suvera-winter-memdb)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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