# go-redis-server **Repository Path**: cn09876/go-redis-server ## Basic Information - **Project Name**: go-redis-server - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-10 - **Last Updated**: 2021-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/dotcloud/go-redis-server.png)](https://travis-ci.org/dotcloud/go-redis-server) Redis server protocol library ============================= There are plenty of good client implementations of the redis protocol, but not many *server* implementations. go-redis-server is a helper library for building server software capable of speaking the redis protocol. This could be an alternate implementation of redis, a custom proxy to redis, or even a completely different backend capable of "masquerading" its API as a redis database. Sample code ------------ ```go package main import ( redis "github.com/dotcloud/go-redis-server" ) type MyHandler struct { values map[string][]byte } func (h *MyHandler) GET(key string) ([]byte, error) { v := h.values[key] return v, nil } func (h *MyHandler) SET(key string, value []byte) error { h.values[key] = value return nil } func main() { handler, _ := redis.NewAutoHandler(&MyHandler{values: make(map[string][]byte)}) server := &redis.Server{Handler: handler, Addr: ":6389"} server.ListenAndServe() } ``` Copyright (c) dotCloud 2013