adammbalogh / key-value-store-file
Key-value file store through fire015/flintstone package.
Installs: 1 134
Dependents: 2
Suggesters: 1
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
- adammbalogh/key-value-store: ~0.5.1
- fire015/flintstone: ~1.6.0
Requires (Dev)
- mikey179/vfsstream: ~1.4
- phpunit/phpunit: ~4.2.5
- satooshi/php-coveralls: dev-master
- squizlabs/php_codesniffer: ~1.5
README
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.