CDB

CDB, short for "constant database", refers to a very fast and highly reliable database system which uses a simple file with key value pairs. In MediaWiki 1.16, a PHP port of CDB was added. Starting with MediaWiki 1.25, it was split out into a separate library which can be used independently of MediaWiki.

Installing
To use it inside your application, simply run, or add a dependency in your.

If you prefer using git, that's also an option:, and autoload the library however you wish to.

If you wish to develop and contribute on the library, see developer access for gaining access to our code review system.

Usage
For actual usage examples, you can look at the following uses within MediaWiki:
 * the interwiki cache
 * the localisation cache
 * Extension:Babel
 * Extension:TrustedXFF
 * Wikimedia's hetdeploy/multiversion