forked from nutsdb/nutsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
24 lines (18 loc) · 1.06 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
Package nutsdb implements a simple, fast, embeddable and persistent key/value store
written in pure Go. It supports fully serializable transactions.
And it also supports data structure such as list、set、sorted set etc.
The design of NutsDB is based on the bitcask storage engine model, and to do some optimization,
using B+ tree instead of hash index, so it supports range scanning and prefix scanning,
using mmap technology to improve write performance.
NutsDB currently works on Mac OS X and Linux. Windows not been tested.
Usage
NutsDB has the following main types: DB, BPTree, Entry, DataFile And Tx. and NutsDB supports bucket, A bucket is
a collection of unique keys that are associated with values.
All operations happen inside a Tx. Tx represents a transaction, which can
be read-only or read-write. Read-only transactions can read values for a
given key , or iterate over a set of key-value pairs (prefix scanning or range scanning).
read-write transactions can also update and delete keys from the DB.
See the examples for more usage details.
*/
package nutsdb