English | 简体中文
FlyDB is a simple and lightweight kv-type database written in Go. It provides an easy-to-use API that allows users to store and retrieve data in their applications.
Note: This project is currently under iterative development and should not be used in production environments!
FlyDB is a fast and easy-to-use kv-type database based on bitcask, designed to be lightweight and simple. With FlyDB, you can easily store and retrieve data in your Go applications. FlyDB is optimized for speed, making it ideal for applications that require fast data access.
Some features of FlyDB include:
-
Easy to use: FlyDB provides a simple and intuitive API that makes storing and retrieving data very easy.
-
Lightweight: FlyDB is designed to be lightweight and efficient, making it ideal for use in resource-constrained environments.
-
Reliable: FlyDB supports transactional operations, ensuring that data is not lost or corrupted during the storage process.
-
Fast: FlyDB uses in-memory data structures, making it fast and responsive, especially for applications that require fast read/write speeds.
-
Scalable: FlyDB provides many configurable options that allow users to adjust its performance and features to suit different usage scenarios.
You can install FlyDB using the Go command line tool:
go get github.com/qishenonly/flydb
Or clone this project from GitHub:
git clone https://github.com/qishenonly/flydb
Here is a simple Linux usage example:
package main
import (
"fmt"
"github.com/qishenonly/flydb"
)
func main() {
options := flydb.DefaultOptions
options.DirPath = "/tmp/flydb"
db, _ := flydb.NewFlyDB(options)
db.Put([]byte("name"), []byte("flydb-example"))
val, err := db.Get([]byte("name"))
if err != nil {
fmt.Println("name value => ", string(val))
}
}
For more detailed usage, please refer to the flydb/examples directory.
If you have any questions or want to contact us, you can reach out to our development team and we will respond to your email promptly:
Team email: [email protected]
Or add my wechat account and invite you to join the project community to exchange and learn with Daniu.
Note when adding wechat : Github
If you have any ideas or suggestions for FlyDB, please feel free to submit issues or pull requests on GitHub. We welcome your contributions!
For full contributing guidelines, please refer to CONTRIBUTING
FlyDB is released under the Apache license. please see the LICENSE file.