Download the PHP package torden/php-mdbm without Composer
On this page you can find all versions of the php package torden/php-mdbm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-mdbm
PHP-mdbm
- PHP-mdbm is a PHP binds to Yahoo! MDBM C API.
- MDBM is a super-fast memory-mapped key/value store.
- MDBM is an ndbm work-alike hashed database library based on sdbm which is based on Per-Aake Larson’s Dynamic Hashing algorithms.
- MDBM is a high-performance, memory-mapped hash database similar to the homegrown libhash.
- The records stored in a mdbm database may have keys and values of arbitrary and variable lengths.
Build Stats | PHP-mdbm ver. | License | Y! mdbm ver. |
---|---|---|---|
Table of Contents
- API
- Install
- Example
- Benchmark
- Link
API
Almost Useful APIs Support.
Not Supported APIs
Unfortunately, the following list are not supported on now.
Group | API |
---|---|
Record Iteration | mdbm_iterate |
Data Management | mdbm_clean, mdbm_prune, mdbm_set_cleanfunc |
Statistics | mdbm_chunk_iterate |
Cache and Backing Store | mdbm_set_backingstore |
Import and Export | mdbm_cdbdump_to_file, mdbm_cdbdump_trailer_and_close, mdbm_cdbdump_add_record, mdbm_dbdump_to_file, mdbm_dbdump_trailer_and_close, mdbm_dbdump_add_record, mdbm_dbdump_export_header, mdbm_dbdump_import_header, mdbm_dbdump_import, mdbm_cdbdump_import |
If you want them, please feel free to raise an issue
Deprecated APIs
API | STATUS | COMMENT |
---|---|---|
mdbm_save | DEPRECATED | mdbm_save is only supported for V2 MDBMs. |
mdbm_restore | DEPRECATED | mdbm_restore is only supported for V2 MDBMs. |
mdbm_sethash | DEPRECATED | Legacy version of mdbm_set_hash() This function has inconsistent naming, an error return value. It will be removed in a future version. |
Only a V2 implementation
API | STATUS | COMMENT |
---|---|---|
mdbm_stat_all_page | V3 not supported | There is only a V2 implementation. V3 not currently supported. |
mdbm_stat_header | V3 not supported | There is only a V2 implementation. V3 not currently supported. |
Support Two Versions Compatibility
PHP
Version | Support | Test |
---|---|---|
5.2.x ~ 5.6.x | yes | always |
7.x | yes | always |
8.x | yes | always |
MDBM
branch or release ver. | Support | Test | Comment |
---|---|---|---|
master | yes | always | |
4.x | yes | always |
Install
MDBM
php-mdbm
Use the composer (packagist)
See the composer documentation for use composer
Use the source code
Or Download the tarball (tag or release)
Compile
Configuration
Check
Example
See the documentation for more details.
Benchmark
The following is results of PHP-mdbm vs PHP SQlite3 benchmarks for simple data storing and random fetching.
See the Source Code.
Prepare for a Benchmark
Spec
Host
Type | Spec |
---|---|
CPU | Inte i-7 |
RAM | DDR4 32G |
HDD | Nvme M.2 SSD |
VM
Type | Spec |
---|---|
Machine | VM(VirtualBox) |
OS | Ubuntu 17.10.1 (Artful Aardvark) |
CPU | 2 vCore |
RAM | 8G |
Software
Type | Version | Comment |
---|---|---|
PHP | 7.0.26 | --- |
php-mdbm | v0.1.0 | --- |
mdbm | master branch | --- |
SQLite3 | 3.19.3 | Async, Transaction, journal_mode = wal |
Simple INSERTs
Simple Random FETCHs
Simple Random FETCHs with Use the Preload API
SQLite3
Simple INSERTs
Simple Random FETCHs
Link
- Yahoo! MDBM
- MDBM::Concept
- MDBM::Build
- MDBM::Document
- MDBM::FAQ
- DBM
- MDBM::Macro(const)
- Packagist
- MDBM Packages
- Go-mdbm
- Py-mdbm
- Upgrading PHP extensions from PHP5 to NG
Please feel free. I hope it is helpful for you.
All versions of php-mdbm with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.29
The package torden/php-mdbm contains the following files
Loading the files please wait ....