JSON Key Value Store
, (*1)
A simple JSON based key value store., (*2)
Installation
This JSON Key Value Store package can be easily installed using Composer. Just run the following command from the root of your project., (*3)
composer require divineomega/json-key-value-store
If you have never used the Composer dependency manager before, head to the Composer website for more information on how to get started., (*4)
Usage
Using the JSON Key Value Store is designed to be super simple., (*5)
Here is a basic usage example:, (*6)
use DivineOmega\JsonKeyValueStore\JsonKeyValueStore;
$store = new JsonKeyValueStore('store.json.gz');
$store->set('key1', 'value123');
$store->set('key2', 'value456');
$store->delete('key2');
$value = $store->get('key1');
// $value = 'value123'