adammbalogh/key-value-store-file

Key-value file store through fire015/flintstone package.

Maintainers

👁 adammbalogh

Package info

github.com/adammbalogh/key-value-store-file

pkg:composer/adammbalogh/key-value-store-file

Statistics

Installs: 1 148

Dependents: 2

Suggesters: 1

Stars: 2

Open Issues: 0

0.5.3 2014-10-20 17:36 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT f9a3f6d1ac3470451ff59f09b2c739752b5354b0

nosqlfilestorevaluekeykey-valueflintstonekey-value-file

This package is auto-updated.

Last update: 2026-06-29 01:20:10 UTC


README

👁 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