tidwall / buntdb

BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support
MIT License
4.57k stars 289 forks source link

Does bucket supported? #47

Closed ghost closed 5 years ago

tidwall commented 5 years ago

There is no concept of a bucket in BuntDB. One way to create a bucket-like system in BuntDB is to include the bucket name as a prefix for keys, such as:

bucketA:mykey
bucketB:mykey

This is a common solution for many key/value systems such as Redis, LMDB, RocksDB, etc.