
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
github.com/youmi/go-redis-server
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.
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
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.