Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
redcon
✓ github.com/tidwall/redcon
Creates a simple Redis-compatible server that responds to PING.
package main
import (
"github.com/tidwall/redcon"
)
func main() {
server := redcon.NewServer(":6380",
func(conn redcon.Conn, cmd redcon.Command) {
switch string(cmd.Args[0]) {
case "ping":
conn.WriteString("pong")
}
},
func(conn redcon.Conn) bool { return true },
func(conn redcon.Conn, err error) {},
)
server.Close()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.6.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.