2017 © Pedro Peláez
 

library key-value-store-replicator

Key-value replicator adapter.

image

adammbalogh/key-value-store-replicator

Key-value replicator adapter.

  • Wednesday, October 22, 2014
  • by adammbalogh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Key Value Replicator Adapter

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads, (*1)

SensioLabsInsight, (*2)

Description

This library provides a layer to replicate commands on key value stores., (*3)

All the read (get, getTtl, has) operations run only on the source adapter, others on both., (*4)

Check out the abstract library to see the other adapters and the Api., (*5)

Installation

Install it through composer., (*6)

{
    "require": {
        "adammbalogh/key-value-store-replicator": "@stable"
    }
}

tip: you should browse the adammbalogh/key-value-store-replicator page to choose a stable version to use, avoid the @stable meta constraint., (*7)

Usage

<?php
use AdammBalogh\KeyValueStore\KeyValueStore;
use AdammBalogh\KeyValueStore\Adapter\MemcachedAdapter;
use AdammBalogh\KeyValueStore\Adapter\RedisAdapter;
use AdammBalogh\KeyValueStore\Adapter\ReplicatorAdapter;


$sourceAdapter = new MemcachedAdapter(new Memcached());
$replicaAdapter = new RedisAdapter(new Predis\Client());

$adapter = new ReplicatorAdapter($sourceAdapter, $replicaAdapter);

$kvs = new KeyValueStore($adapter);

$kvs->set('sample_key', 'Sample value');
$kvs->get('sample_key');
$kvs->delete('sample_key');

API

Please visit the API link in the abstract library., (*8)

Toolset

Key Value Server
✔ delete ✔ get ✔ flush
✔ expire ✔ set
✔ getTtl
✔ has
✔ persist

Support

Support with Gittip, (*9)

The Versions

22/10 2014

dev-master

9999999-dev

Key-value replicator adapter.

  Sources   Download

MIT

The Requires

 

The Development Requires

store key value key-value replicator copy

22/10 2014

0.5.0

0.5.0.0

Key-value replicator adapter.

  Sources   Download

MIT

The Requires

 

The Development Requires

store key value key-value replicator copy