Experimental key-value persistent DB with TCP.
Miniredis is project a mini project written for for GDG Istanbul Golang Workshop.
OS X & Linux:
$ go get github.com/IzmirGophers/miniredis
$ cd $GOPATH/src/github.com/IzmirGophers/miniredis
$ go install
Miniredis is running on tcp, you can send commands through any client you can establish TCP connection.
Command | Params | Example |
---|---|---|
SET | key val | SET foo bar |
GET | key | GET foo |
MSET | key val key val key val | MSET foo bar foo1 bar1 foo2 bar2 |
MGET | key, key, key ++ | MGET foo foo1 foo2 |
DEL | key | DEL foo |
DBSIZE | DBSIZE | |
KEYS | KEYS |
goos: linux
goarch: amd64
pkg: github.com/IzmirGophers/miniredis
BenchmarkGet 5000000 249 ns/op
BenchmarkSet 3000000 518 ns/op
BenchmarkMGet 3000000 577 ns/op
BenchmarkMset 2000000 966 ns/op
BenchmarkKeys 500000 3639 ns/op
BenchmarkDBSize 20000000 105 ns/op
PASS
ok github.com/IzmirGophers/miniredis 12.898s
Scaleway - Intel(R) Atom(TM) CPU C3955 @ 2.10GHz - 1GB
Distributed under the GPL license. See LICENCE
for more information.
Rıza Sabuncu |
Sinan Ülker |
Oğuzhan Yılmaz |
Halil Tuğcan Özaktaş |
Fatih Kahveci |
- Fork it (https://github.com/IzmirGophers/miniredis/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request