https://github.com/asynched/gokvdb
A key-value database similar to memcached written in Go.
https://github.com/asynched/gokvdb
database go
Last synced: 3 months ago
JSON representation
A key-value database similar to memcached written in Go.
- Host: GitHub
- URL: https://github.com/asynched/gokvdb
- Owner: asynched
- Created: 2024-02-01T23:44:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T00:16:02.000Z (over 2 years ago)
- Last Synced: 2025-12-12T22:43:53.290Z (7 months ago)
- Topics: database, go
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gokvdb
A key-value database similar to memcached written in Go.
## Installation
### Requirements
- Go
- GNU/Make
### Build
Build the server with:
```sh
make server
```
> This will generate a `bin/server` executable
Build the client with:
```sh
make client
```
> This will generate a `bin/client` executable
### Commands
#### SET
Sets a new entry in the database with a key, value and time to live in seconds (ttl).
```sh
# SET key value ttl
?> SET name asynched 10
```
#### GET
Retrieves the value of a key from the database.
```sh
# GET key
?> GET name
```
#### DELETE
Deletes a key from the database.
```sh
# DELETE key
?> DELETE name
```
#### FLUSHALL
Deletes all keys from the database.
```sh
# FLUSHALL
?> FLUSHALL
```