baradb-redis

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 5 Imported by: 0

README

baradb-redis

baradb-redis is a Redis implementation based on baradb, a Bitcask K/V storage engine. It provides a service on the top of Bitcask K/V storage engine. With the service, it could be easy to support Redis data types and implement Redis commands.

Install

$ go install github.com/saint-yellow/baradb-redis@latest 

Executing the command above will add a binary file called baradb-redis to you $GOPATH/bin.

Usage

It is similar to using Redis. Start the server and use a Redis client to connect to the server.

Suppose $GOPATH/bin/baradb-redis is in you $PATH, you can use it like this:

$ baradb-redis &
server running, ready to accept connections 

$ redis-cli -p 6378
127.0.0.1:6378> set name "saint-yellow"
OK
127.0.0.1:6378> get name
"saint-yellow"
127.0.0.1:6378>

Roadmap

  1. Support String, Hash, Set, ZSet, List.
  2. Implement commands of data types mentioned above.

Chagelog

v0.1.2 - 2023-07-11

Implemented commands:

  • Generic: DEL, TYPE, EXISTS
  • String: SET, GET, SETNX, STRLEN
  • List: LLEN, LPUSH, RPUSH
  • Set: SADD, SISMEMBER, SMEMBERS, SCARD

Contributing

PRs accepted.

License

MIT © Saint-Yellow

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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