wikimedia/cdb
CDB functions for PHP
|
![Latest Stable Version] ![License]
CDB, short for "constant database", refers to a very fast and highly reliable database system which uses a simple file with key value pairs. This library wraps the CDB functionality exposed in PHP via the dba_*
functions. In cases where dba_*
functions are not present or are not compiled with CDB support, a pure-PHP implementation is provided for falling back.
Additional documentation about the library can be found on mediawiki.org.
// Using the CLI $ cdb ./myfile.cdb [get|list|match] <parameter>
composer install --prefer-dist composer test
This library was first introduced in MediaWiki 1.16 (r52203). It was split out of the MediaWiki codebase and published as an independent library during the MediaWiki 1.25 development cycle.