Skip to content

jdodds/php-key-value-file

Repository files navigation

This is a very simple file-backed persistent key-value store for php.

Usage:

$store = new JDodds\Storage\KeyValueFile('/path/to/save/in');

$store->attach('foo', 'bar');
$store['baz'] = 'quux';

$store->persist();

// ... sometime later

$store = new JDodds\Storage\KeyValueFile('/the/same/path/as/before');
$foo = $store['foo'];

$foo2 = $store->detach('foo');
$store->contains('foo') // false;

About

A very simple file-backed key-value store for PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages