Tokyo Cabinet

discontinued

by FAL Labs (Mikio Hirabayashi) · since 2007 · also known as TC

Classic C DBM library from FAL Labs; unmaintained since 2012 and twice superseded.

key-valueembedded libraryopen source (copyleft)legacy

discontinued. No release since 1.4.48 (Aug 2012); superseded by Kyoto Cabinet and then Tkrzw, which the author recommends.

Overview

Tokyo Cabinet was a fast C library implementing hash, B+tree, fixed-length and table (schemaless record) databases, and with its companion network server Tokyo Tyrant it was one of the original 'NoSQL' darlings around 2008-2010, used notably at mixi. Its author moved on to Kyoto Cabinet and later Tkrzw, and the final release, 1.4.48, dates from August 2012. FAL Labs' page itself recommends Tkrzw. It should be considered discontinued.

Strengths & trade-offs

Strengths

  • +Very fast hash and B+tree files for its era
  • +Table database offered simple schemaless records with column indexes

Trade-offs

  • −Unmaintained since 2012, with no security fixes
  • −Known corruption risks without careful shutdown
  • −Bindings and Tokyo Tyrant are equally abandoned

Great for

  • +Reading data from legacy Tokyo Cabinet files during migration
  • +Studying classic DBM file-format design

Think twice for

  • −Any new project

Capabilities

Native or official first-party support · 4 of 25 tracked

✓Transactions
✓Secondary indexes
✓Durable persistence
✓Compression
–Joins
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
C API

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsC API
client languagesC, Perl, Ruby, Java, Lua

Alternatives to Tokyo Cabinet

Compare all→
Kyoto CabinetKey-Value1.7

FAL Labs' C++ DBM library with hash and B+tree files; superseded by its author's Tkrzw.

tokyo-cabinet vs kyoto-cabinet →
LMDBKey-Value39.7

Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.

tokyo-cabinet vs lmdb →
RocksDBKey-Value48.2

Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases.

tokyo-cabinet vs rocksdb →
LevelDBKey-Value33.4

Google's original small, fast LSM key-value library, now in limited-maintenance mode.

tokyo-cabinet vs leveldb →
EhcacheKey-Value17.6

The standard embedded JVM cache, with heap, off-heap and disk tiers and optional Terracotta clustering.

tokyo-cabinet vs ehcache →
Chronicle MapKey-Value8.7

Off-heap, memory-mapped key-value store for Java with microsecond latency and cross-process sharing.

tokyo-cabinet vs chronicle-map →

Tokyo Cabinet FAQ

What is Tokyo Cabinet?

Tokyo Cabinet is a key-value database by FAL Labs (Mikio Hirabayashi), first released in 2007. Tokyo Cabinet was a fast C library implementing hash, B+tree, fixed-length and table (schemaless record) databases, and with its companion network server Tokyo Tyrant it was one of the original 'NoSQL' darlings around 2008-2010, used notably at mixi. Its author moved on to Kyoto Cabinet and later Tkrzw, and the final release, 1.4.48, dates from August 2012. FAL Labs' page itself recommends Tkrzw. It should be considered discontinued.

Is Tokyo Cabinet open source?

Yes. Tokyo Cabinet is open source. License: GNU LGPL v2.1.

Does Tokyo Cabinet support ACID transactions?

Partly. Tokyo Cabinet offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does Tokyo Cabinet scale horizontally?

Tokyo Cabinet does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run Tokyo Cabinet?

You can self-host it and embed it in your application.

What is Tokyo Cabinet best for?

Tokyo Cabinet is a strong fit for reading data from legacy Tokyo Cabinet files during migration and studying classic DBM file-format design. Think twice for any new project.

What are the best alternatives to Tokyo Cabinet?

Common alternatives to Tokyo Cabinet include Kyoto Cabinet, LMDB, RocksDB, LevelDB and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Tokyo Cabinet still maintained?

Tokyo Cabinet is discontinued. No release since 1.4.48 (Aug 2012); superseded by Kyoto Cabinet and then Tkrzw, which the author recommends.

How popular is Tokyo Cabinet?

Tokyo Cabinet ranks #557 of 844 databases on the WhichDB Score (1.4/100), and #91 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.