key-value-store-file 0 scrutinizer travis-ci Packagist phpunit

Key Value File Store

4 years after MIT

Key Value File Store

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

SensioLabsInsight

Description

This library provides a layer to a key value file store.

It uses the fire015/flintstone package.

Check out the abstract library to see the other adapters and the Api.

Installation

Install it through composer.

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

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

Usage

<?php
use AdammBalogh\KeyValueStore\KeyValueStore;
use AdammBalogh\KeyValueStore\Adapter\FileAdapter as Adapter;
use Flintstone\Flintstone;

$fileClient = Flintstone::load('usersDatabase', ['dir' => '/tmp']);

$adapter = new Adapter($fileClient);

$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.

Toolset

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

Support

Support with Gittip

Related Repositories

Akavache

Akavache

An asynchronous, persistent key-value store ...

Chronicle-Map

Chronicle-Map

Replicate your Key Value Store across your network, with consistency, persistanc ...

PalDB

PalDB

An embeddable write-once key-value store written in Java ...

diskv

diskv

A disk-backed key-value store. ...

blobstash

blobstash

BlobStash is both a content-addressed blob store and a key value store accessibl ...


Top Contributors

adammbalogh fire015

Releases

-   0.5.3 zip tar
-   0.5.2 zip tar
-   0.5.1 zip tar
-   0.5.0 zip tar
-   0.4.0 zip tar
-   0.3.2 zip tar
-   0.3.1 zip tar
-   0.3.0 zip tar
-   0.2.1 zip tar
-   0.2.0 zip tar
-   0.1.0 zip tar