Skip to content

gitter-badger/key-value-store-file

 
 

Repository files navigation

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.

Support

Support with Gittip

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

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.

API

Please visit the API link in the abstract library.

About

Key-Value File Store

Resources

License

Stars

Watchers

Forks

Packages

No packages published