2017 © Pedro Peláez
 

library key-value-store

A key-value store API with implementations for different backends.

image

webmozart/key-value-store

A key-value store API with implementations for different backends.

  • Monday, August 15, 2016
  • by webmozart
  • Repository
  • 14 Watchers
  • 120 Stars
  • 29,716 Installations
  • PHP
  • 13 Dependents
  • 3 Suggesters
  • 8 Forks
  • 0 Open issues
  • 9 Versions
  • 4 % Grown

The README.md

Webmozart Key-Value-Store

Build Status Build status Scrutinizer Code Quality Latest Stable Version Total Downloads Dependency Status, (*1)

Latest release: 1.0.0, (*2)

A key-value store API with implementations for different backends., (*3)

API Documentation, (*4)

All contained key-value stores implement the interface [KeyValueStore]. The following stores are currently supported:, (*5)

  • [ArrayStore]
  • [DbalStore]
  • [JsonFileStore]
  • [MongoDbStore]
  • [NullStore]
  • [PhpRedisStore]
  • [PredisStore]
  • [RiakStore]

The interface [CountableStore] is supported by the following classes:, (*6)

  • [ArrayStore]
  • [JsonFileStore]
  • [NullStore]
  • [CountableDecorator]

The interface [SortableStore] is supported by the following classes:, (*7)

  • [ArrayStore]
  • [JsonFileStore]
  • [NullStore]
  • [SortableDecorator]

The decorator [CachingDecorator] exists for caching another store instance in a Doctrine cache., (*8)

FAQ

Why not use Doctrine Cache?, (*9)

Caching is not key-value storage. When you use a cache, you accept that keys may disappear for various reasons:, (*10)

  • Keys may expire.
  • Keys may be overwritten when the cache is full.
  • Keys may be lost after shutdowns.
  • ...

In another word, caches are volatile. This is not a problem, since the cached data is usually stored safely somewhere else. The point of a cache is to provide high-performance access to frequently needed data., (*11)

Key-value stores, on the other hand, are persistent. When you write a key to a key-value store, you expect it to be there until you delete it. It would be a disaster if data would silently disappear from a key-value store (or any other kind of database)., (*12)

Hence the two libraries fulfill two very different purposes, even if their interfaces and implementations are often similar., (*13)

The [CachingDecorator] actually uses a Doctrine Cache object to cache the data of a persistent [KeyValueStore]., (*14)

Authors

Installation

Use Composer to install the package:, (*15)

$ composer require webmozart/key-value-store

Contribute

Contributions to the package are always welcome!, (*16)

Support

If you are having problems, send a mail to bschussek@gmail.com or shout out to @webmozart on Twitter., (*17)

License

All contents of this package are licensed under the MIT license., (*18)

The Versions

15/08 2016

dev-master

9999999-dev

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

09/08 2016

1.0.0

1.0.0.0

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

14/01 2016

1.0.0-beta7

1.0.0.0-beta7

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

02/10 2015

1.0.0-beta6

1.0.0.0-beta6

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

11/08 2015

1.0.0-beta5

1.0.0.0-beta5

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

28/05 2015

1.0.0-beta4

1.0.0.0-beta4

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

13/04 2015

1.0.0-beta3

1.0.0.0-beta3

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernhard Schussek

21/01 2015

1.0.0-beta2

1.0.0.0-beta2

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Bernhard Schussek

12/01 2015

1.0.0-beta

1.0.0.0-beta

A key-value store API with implementations for different backends.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Bernhard Schussek