PHPackages                             necromant2005/tt-ssdb - 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. necromant2005/tt-ssdb

ActiveLibrary[Caching](/categories/caching)

necromant2005/tt-ssdb
=====================

SSDB cache adapter for ZF2

1.2.0(10y ago)06.3kMITPHPPHP &gt;=5.3.0

Since May 23Pushed 10y agoCompare

[ Source](https://github.com/necromant2005/tt-ssdb)[ Packagist](https://packagist.org/packages/necromant2005/tt-ssdb)[ Docs](https://github.com/necromant2005/tt-ssdb)[ RSS](/packages/necromant2005-tt-ssdb/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (0)

TweeSSDB
========

[](#tweessdb)

Version 2.0.1 Created by Rostislav Mykhajliw

[![Build Status](https://camo.githubusercontent.com/3dc5087ba3d3c1e51a127b13ef49c26afcff86a5eea436052cf6704323c8bb73/68747470733a2f2f7472617669732d63692e6f72672f6e6563726f6d616e74323030352f74742d535344422e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/necromant2005/tt-SSDB)

Introduction
------------

[](#introduction)

SSDB adapter with Master/Slave replication support

Features / Goals
----------------

[](#features--goals)

- Standard interface zf2 Zend\\Cache\\Storage\\Adapter
- Support master/slave replication
- Support wigth for servers reads
- Support failover

Installation
------------

[](#installation)

### Main Setup

[](#main-setup)

#### With composer

[](#with-composer)

1. Add this to your composer.json:

```
"require": {
    "necromant2005/tt-ssdb": "1.*",
}
```

2. Now tell composer to download TweeSSDB by running the command:

```
$ php composer.phar update
```

#### Usage

[](#usage)

Configuration with 1 master and 2 slaves, due to wieght configuration only 1/5 reads go to master all other 4/5 to slaves. Each slave receives 2/5 reads.

```
use TweeSSDB\Cache\Storage\Adapter;

$options = new SSDBOptions(array(
    array('host' => '127.0.0.1', 'port' => 8888, 'weight' => 1, 'type' => 'master'),
    array('host' => '127.0.0.2', 'port' => 8888, 'weight' => 2, 'type' => 'slave'),
    array('host' => '127.0.0.3', 'port' => 8888, 'weight' => 2, 'type' => 'slave'),
));
$adapter = new SSDB($options);
```

Also it's possible to use multi master write - in this case writes will be distributed within all master nodes (as weel as reads)

```
use TweeSSDB\Cache\Storage\Adapter;

$options = new SSDBOptions(array(
    array('host' => '127.0.0.1', 'port' => 8888, 'weight' => 1, 'type' => 'master'),
    array('host' => '127.0.0.2', 'port' => 8888, 'weight' => 1, 'type' => 'master'),
    array('host' => '127.0.0.3', 'port' => 8888, 'weight' => 1, 'type' => 'master'),
));
$adapter = new SSDB($options);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~4 days

Total

6

Last Release

3671d ago

### Community

Maintainers

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

---

Top Contributors

[![necromant2005](https://avatars.githubusercontent.com/u/159874?v=4)](https://github.com/necromant2005 "necromant2005 (40 commits)")

---

Tags

zf2ssdb

### Embed Badge

![Health badge](/badges/necromant2005-tt-ssdb/health.svg)

```
[![Health](https://phpackages.com/badges/necromant2005-tt-ssdb/health.svg)](https://phpackages.com/packages/necromant2005-tt-ssdb)
```

###  Alternatives

[stroker/cache

Provides a full page cache solution for Laminas

6044.8k](/packages/stroker-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14733.5k1](/packages/phpfastcache-phpssdb)[socalnick/scn-esi-widget

Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable application.

309.0k](/packages/socalnick-scn-esi-widget)

PHPackages © 2026

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