adammbalogh/key-value-store-memory

Key-value memory store through a simple php array.

Maintainers

👁 adammbalogh

Package info

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

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

Statistics

Installs: 866

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 0

0.5.2 2015-11-06 09:01 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 6bafb9037d61911f76343a7aa7270866b1a11995

storearrayvaluekeykey-valuekey-value-memory

This package is auto-updated.

Last update: 2026-06-29 01:19:12 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 memory store.

It uses a simple php array.

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

Installation

Install it through composer.

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

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

Usage

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

$adapter = new Adapter();

$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