hydro

module
v0.0.0-...-8a7ea67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT

README

Hydro

Hydro is a simple, persistent key / value store written in Go.

This was done as an experiment in databases for a Golang meetup.

To start the hydro tcp server run: make

You can connect to the server via telnet localhost <port>. Once connected you can run commands like:

  • set hello world // sets key "hello" to "world"
  • get hello // gets value for key "hello"
  • del hello // deletes key "hello"
  • quit // close connection

If you have restore enabled, the database will read the commit log to reload the key value store on startup.

The are hydro specific environment variables that will change runtime behavior. Those can be found here

Directories

Path Synopsis
cmd
hash
Package hash implements a simple storage agnostic hash index for a key value store.
Package hash implements a simple storage agnostic hash index for a key value store.
file
Package file implements a simple file storage layer for an index to operate on.
Package file implements a simple file storage layer for an index to operate on.
fileseg
Package fileseg implements segmented file based storage with a segmentation and compaction strategy.
Package fileseg implements segmented file based storage with a segmentation and compaction strategy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL