1) leveldb
Leveldb is a fast-developing database key-value storage engine developed by Google, which can be mapped in the order of string key values in accordance with BSD-licensed open source leveldb.
API http://leveldb.googlecode.com/svn/trunk/doc/index.html
2) Php-leveldb
php-leveldbleveldb PHP extension, simple interface
|
$path = '/tmp/leveldb.log '; $db = new LevelDb ($path); echo "* Setting (Foo=bar): \ n"; Var_dump ($db->set (' foo ', ' Bar ')); echo "* Getting (foo): \ n"; Var_dump ($db->get (' foo ')); echo "* Delete (foo): \ n"; Var_dump ($db, delete (' foo ')); echo "* Getting (foo): \ n"; Var_dump ($db->get (' foo ')); |
One-click Installation
|
#!/bin/sh #目录 Build=/home/venkman/data/server CD $BUILD #下载leveldb SVN export http://leveldb. googlecode.com/svn/trunk/leveldb CD LEVELDB Make CD $BUILD #php-leveldb git clone git://github. com/arraypad/php-leveldb. Git CD PHP-LEVELDB Phpize . /configure--with-leveldb= $BUILD/leveldb--with-php-config=/home/venkman/data/server/php/bin/php-config Make Make install |
Note Modify php.ini Add extension = leveldb.so and restart PHP