gred

command module
v0.0.0-...-cf07a88 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

README

gred

gred is a pure-Go concurrent implementation of the Redis server. See features for the current state of supported features and commands.

Warning: this was an experiment and is no longer under active development, nor maintained.

Installation

Install go, then run:

$ go get -u github.com/PuerkitoBio/gred/...

Usage

gred uses the Redis Serialization Protocol (RESP), so it is a drop-in replacement for Redis. Provided the $GOPATH/bin is in your $PATH, run:

$ gred

to start the server on the default port 6379. It uses glog for logging, so the glog flags are available. Type gred -h to get the list of options.

Once gred is running, and provided you have a working Redis installation, you can start the redis client to send commands to the server:

$ redis-cli

Since gred uses the RESP, all Redis clients should be automatically supported (such as redigo).

dreadis

Under tools/ is dreadis, an automated Redis client. Using JSON command files, this command-line tool can stress-test or validate the correctness of the server. See its documentation for more details. Some command files exist under the fixtures/ directory.

License

The BSD 3-Clause license. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package cmd defines the common command interfaces.
Package cmd defines the common command interfaces.
Package resp implements an efficient decoder for the Redis Serialization Protocol (RESP).
Package resp implements an efficient decoder for the Redis Serialization Protocol (RESP).
Package srv implements the server components required to manage the database and its keys.
Package srv implements the server components required to manage the database and its keys.
tools
dreadis
Command dreadis is an automated tester of RESP-compatible, Redis-like servers.
Command dreadis is an automated tester of RESP-compatible, Redis-like servers.
Package types implements the different value types offered by Redis.
Package types implements the different value types offered by Redis.

Jump to

Keyboard shortcuts

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