2017 © Pedro Peláez
 

library key-value-store-shared-memory

Key-value shared memory store through php shared memory module.

image

adammbalogh/key-value-store-shared-memory

Key-value shared memory store through php shared memory module.

  • Monday, July 11, 2016
  • by adammbalogh
  • Repository
  • 1 Watchers
  • 3 Stars
  • 778 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Key Value Shared Memory Store

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

SensioLabsInsight, (*2)

Description

This library provides a layer to a key value shared memory store., (*3)

It uses the php shared memory module., (*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-shared-memory": "@stable"
    }
}

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

Usage

<?php
use AdammBalogh\KeyValueStore\KeyValueStore;
use AdammBalogh\KeyValueStore\Adapter\SharedMemoryAdapter as Adapter;

$tmpFileName = tempnam('/tmp', 'KVS');
$shmResource = shm_attach(ftok($tmpFileName, 'a'));
if ( ! $shmResource) {
    die('Unable to create the shared memory segment');
}

$adapter = new Adapter($shmResource);

$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

11/07 2016

dev-master

9999999-dev

Key-value shared memory store through php shared memory module.

  Sources   Download

MIT

The Requires

 

The Development Requires

store key value key-value memory shared key-value-shared-memory

20/10 2014

0.5.1

0.5.1.0

Key-value shared memory store through php shared memory module.

  Sources   Download

MIT

The Requires

 

The Development Requires

store key value key-value memory shared key-value-shared-memory

20/10 2014

0.5.0

0.5.0.0

Key-value shared memory store through php shared memory module.

  Sources   Download

MIT

The Requires

 

The Development Requires

store key value key-value memory shared key-value-shared-memory