Tokyo Cabinet: a modern implementation of DBM

Copyright (C) 2006-2011 FAL Labs
Last Update: Thu, 05 Aug 2010 15:05:11 +0900

BTW, do you know Tkrzw? Actually, it is more powerful and convenient library than Tokyo Cabinet. At this distance of time, Tkrzw surpasses Tokyo Cabinet in every aspects. I strongly recommend you to use Tkrzw.


Tokyo Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. There is neither concept of data tables nor data types. Records are organized in hash table, B+ tree, or fixed-length array.

Tokyo Cabinet is developed as the successor of GDBM and QDBM on the following purposes. They are achieved and Tokyo Cabinet replaces conventional DBM products.

Tokyo Cabinet is written in the C language, and provided as API of C, Perl, Ruby, Java, and Lua. Tokyo Cabinet is available on platforms which have API conforming to C99 and POSIX. Tokyo Cabinet is a free software licensed under the GNU Lesser General Public License.


The following are documents of Tokyo Cabinet. They are contained also in the source package.


The following are the source packages of Tokyo Cabinet. As for binary packages, see the site of each distributor.


Tokyo Cabinet was written and is maintained by FAL Labs. You can contact the author by e-mail to `'.

The following are sibling projects of Tokyo Cabinet.