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 5y 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 today

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 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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