Kyoto Cabinet

maintenance

by FAL Labs (Mikio Hirabayashi) · since 2009 · also known as KC

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

key-valueembedded libraryopen source (copyleft)legacy

maintenance. Only occasional build fixes (last release 1.2.80, April 2023); the author recommends his successor library Tkrzw.

Overview

Kyoto Cabinet is the C++ successor to Tokyo Cabinet, written by Mikio Hirabayashi at FAL Labs: a family of DBM-style databases (file hash, file B+tree, directory and in-memory variants) with thread-safe access, transactions and very fast single-node throughput. Together with the Kyoto Tycoon network server it was a popular lightweight store around 2010. It now receives only occasional build fixes (1.2.80 in 2023), and the author's own pages recommend Tkrzw, his modern replacement. Use it only to keep existing software running.

Strengths & trade-offs

Strengths

  • +Very fast single-node hash and B+tree storage
  • +Multiple database types behind a common polymorphic API
  • +Thread-safe with fine-grained locking

Trade-offs

  • −Effectively unmaintained apart from build fixes
  • −GPL license limits use in proprietary software
  • −Language bindings are dated and largely unmaintained

Great for

  • +Keeping legacy Kyoto Cabinet/Tycoon deployments alive
  • +Simple local DBM storage in existing C++ code

Think twice for

  • −New projects
  • −Proprietary embedded products
  • −Concurrent multi-process access

Capabilities

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

✓Transactions
✓In-memory
✓Durable persistence
✓Compression
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–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, C API
client languagesC++, C, Java, Python, Ruby, Perl, Lua

Alternatives to Kyoto Cabinet

Compare all→
LMDBKey-Value39.7

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

kyoto-cabinet vs lmdb →
RocksDBKey-Value48.2

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

kyoto-cabinet vs rocksdb →
Tokyo CabinetKey-Value1.4

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

kyoto-cabinet vs tokyo-cabinet →
LevelDBKey-Value33.4

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

kyoto-cabinet vs leveldb →
Oracle Berkeley DBKey-Value17.0

The 1990s-era embedded key-value library, now Oracle-owned, AGPL-licensed and rarely updated.

kyoto-cabinet vs berkeley-db →
EhcacheKey-Value17.6

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

kyoto-cabinet vs ehcache →

Kyoto Cabinet FAQ

What is Kyoto Cabinet?

Kyoto Cabinet is a key-value database by FAL Labs (Mikio Hirabayashi), first released in 2009. Kyoto Cabinet is the C++ successor to Tokyo Cabinet, written by Mikio Hirabayashi at FAL Labs: a family of DBM-style databases (file hash, file B+tree, directory and in-memory variants) with thread-safe access, transactions and very fast single-node throughput. Together with the Kyoto Tycoon network server it was a popular lightweight store around 2010. It now receives only occasional build fixes (1.2.80 in 2023), and the author's own pages recommend Tkrzw, his modern replacement. Use it only to keep existing software running.

Is Kyoto Cabinet open source?

Yes. Kyoto Cabinet is open source. License: GNU GPL v3.

Does Kyoto Cabinet support ACID transactions?

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

Does Kyoto Cabinet scale horizontally?

Kyoto 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 Kyoto Cabinet?

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

What is Kyoto Cabinet best for?

Kyoto Cabinet is a strong fit for keeping legacy Kyoto Cabinet/Tycoon deployments alive and simple local DBM storage in existing C++ code. Think twice for new projects.

What are the best alternatives to Kyoto Cabinet?

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

Is Kyoto Cabinet still maintained?

Kyoto Cabinet is in maintenance mode. Only occasional build fixes (last release 1.2.80, April 2023); the author recommends his successor library Tkrzw.

How popular is Kyoto Cabinet?

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