lvht/kv

There is no license information available for the latest version (v1.0.0) of this package.

v1.0.0 2017-06-17 04:42 UTC

This package is not auto-updated.

Last update: 2024-05-03 18:01:50 UTC


README

use sqlite as key-value store.

install

composer require lvht/kv

usage

<?php
$kv = \Lvht\Key\Key::new('path/to/file.db');
// $kv = \Lvht\Key\Key::new('path/to/file.db', 'text');

$kv->set('a', [1,2,3]);

var_dump($kv->get('a'));

The output is

array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}