adammbalogh/key-value-store-null

Key-value null store package. It literally does nothing.

Maintainers

👁 adammbalogh

Package info

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

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

Statistics

Installs: 26 936

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

0.5.1 2014-10-20 17:42 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 939c43472ab1d0b7f6fd0124f7c75d7ac8ae04c5

nosqlstorevaluekeynullkey-valuekey-value-null

This package is auto-updated.

Last update: 2026-06-29 01:14:29 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 null store.

It does not use a third party package. It literally does nothing.

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

Installation

Install it through composer.

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

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

Usage

<?php
use AdammBalogh\KeyValueStore\KeyValueStore;
use AdammBalogh\KeyValueStore\Exception\KeyNotFoundException;
use AdammBalogh\KeyValueStore\Adapter\NullAdapter as Adapter;

$adapter = new Adapter();

$kvs = new KeyValueStore($adapter);

$kvs->set('sample_key', 'Sample value');
try {
 $kvs->get('sample_key');
} catch (KeyNotFoundException $e) {
 // null adapter's get method throws KeyNotFoundException
}
$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