PHPackages                             adammbalogh/key-value-store - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. adammbalogh/key-value-store

ActiveLibrary[Database &amp; ORM](/categories/database)

adammbalogh/key-value-store
===========================

Key-value store generic package. It contains abstractions.

0.5.3(9y ago)4944.4k↑60.7%412MITPHPPHP &gt;=5.4.0

Since Sep 22Pushed 9y ago4 watchersCompare

[ Source](https://github.com/adammbalogh/key-value-store)[ Packagist](https://packagist.org/packages/adammbalogh/key-value-store)[ RSS](/packages/adammbalogh-key-value-store/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (13)Used By (12)

\#Key Value Store

[![Author](https://camo.githubusercontent.com/9582c654a130ad6ba8d12bead14973a97730a3993f41d229eb56691a0626ceed/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406164616d6d62616c6f67682d626c75652e7376673f7374796c653d666c6174)](https://twitter.com/adammbalogh)[![Build Status](https://camo.githubusercontent.com/4a60a1477706f4dde03f5ee53e99fa29f82744adf77bbc1d34506f81b6cf62f6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6164616d6d62616c6f67682f6b65792d76616c75652d73746f72652f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/adammbalogh/key-value-store)[![Coverage Status](https://camo.githubusercontent.com/9c782774237f661dbd5e070e29f018dbd510c142298dbbd9d91a5efdfd25425e/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6164616d6d62616c6f67682f6b65792d76616c75652d73746f72652e7376673f7374796c653d666c6174)](https://coveralls.io/r/adammbalogh/key-value-store)[![Quality Score](https://camo.githubusercontent.com/d6a05ead8f83a0be6c7f0e92711f1ed5fa16db3fbbeb72a3d10fe13690fa84de/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164616d6d62616c6f67682f6b65792d76616c75652d73746f72652e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/adammbalogh/key-value-store)[![Software License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/f0d782f2d4c6c67e84dff944c8eb1dd5ef65a77757cce9928a880f39664ce43f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d6d62616c6f67682f6b65792d76616c75652d73746f72652e7376673f7374796c653d666c6174)](https://packagist.org/packages/adammbalogh/key-value-store)[![Total Downloads](https://camo.githubusercontent.com/1c95b663d35cc2a8fd3a5f8640c098f867d8fa659b7a57580b1be803644311c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d6d62616c6f67682f6b65792d76616c75652d73746f72652e7376673f7374796c653d666c6174)](https://packagist.org/packages/adammbalogh/key-value-store)

[![SensioLabsInsight](https://camo.githubusercontent.com/8fe48f5be7d61174c35d36b5aa83d64a93cf9f4cc63e35f7cf4afec456861393/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66316464623434332d643261312d343939612d393236612d3036306364656364343130302f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/f1ddb443-d2a1-499a-926a-060cdecd4100)

**Key Value Store** is a library which abstracts the most used key value stores, like Redis or Memcached.

Description
===========

[](#description)

This library provides an abstraction layer for key value stores. It is literally an abstraction because it contains only contracts and fundemantal implementations. So you need to install a store specific implementation a.k.a. an adapter.

Adapters
========

[](#adapters)

**These are separate repositories!**

Adapter nameRepositoryMemory[key-value-store-memory](https://github.com/adammbalogh/key-value-store-memory)Shared Memory[key-value-store-shared-memory](https://github.com/adammbalogh/key-value-store-shared-memory)File[key-value-store-file](https://github.com/adammbalogh/key-value-store-file)Memcache[key-value-store-memcache](https://github.com/tikaszvince/key-value-store-memcache)Memcached[key-value-store-memcached](https://github.com/adammbalogh/key-value-store-memcached)Redis[key-value-store-redis](https://github.com/adammbalogh/key-value-store-redis)Replicator[key-value-store-replicator](https://github.com/adammbalogh/key-value-store-replicator)Null[key-value-store-null](https://github.com/adammbalogh/key-value-store-null)### Planned adapters

[](#planned-adapters)

- Apc
- Couchbase
- ?

Installation
============

[](#installation)

This is an abstract package not a store specific implementation.

**Please visit the links in the [Adapters](https://github.com/adammbalogh/key-value-store#adapters) section.**

Usage
=====

[](#usage)

*with Redis (through predis/predis)*

```
