2017 © Pedro Peláez
 

library tt-ssdb

SSDB cache adapter for ZF2

image

necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  • Saturday, June 11, 2016
  • by necromant2005
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6,319 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

TweeSSDB

Version 2.0.1 Created by Rostislav Mykhajliw, (*1)

Build Status, (*2)

Introduction

SSDB adapter with Master/Slave replication support, (*3)

Features / Goals

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

Installation

Main Setup

With composer

  1. Add this to your composer.json:
"require": {
    "necromant2005/tt-ssdb": "1.*",
}
  1. Now tell composer to download TweeSSDB by running the command:
$ php composer.phar update

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., (*4)

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), (*5)

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);

The Versions

11/06 2016

dev-master

9999999-dev https://github.com/necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 ssdb

11/06 2016

1.2.0

1.2.0.0 https://github.com/necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 ssdb

23/05 2016

1.1.1

1.1.1.0 https://github.com/necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 ssdb

23/05 2016

1.1.2

1.1.2.0 https://github.com/necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 ssdb

23/05 2016

1.1.0

1.1.0.0 https://github.com/necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 ssdb

23/05 2016

1.0.1

1.0.1.0 https://github.com/necromant2005/tt-ssdb

SSDB cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 ssdb

23/05 2016

1.0.0

1.0.0.0 https://github.com/necromant2005/tt-memcachedb

Memcachedb cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 memcachedb

23/05 2016

dev-ssdb

dev-ssdb https://github.com/necromant2005/tt-memcachedb

Memcachedb cache adapter for ZF2

  Sources   Download

MIT

The Requires

 

zf2 memcachedb