Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisServer ¶
type RedisServer struct {
// contains filtered or unexported fields
}
RedisServer is a minimal Redis-compatible server backed by a plain Go map.
This backend exists mainly as a baseline for quantifying protocol + redcon overhead versus the storage engines (HashDB/TreeDB).
NOTE: For performance, values are stored as-is from redcon's cmd.Args slices. Redcon makes a full copy of the raw RESP command per request, so the slices remain valid after the handler returns. This does mean we retain the raw command backing array for each stored value.
func NewRedisServer ¶
func NewRedisServer(_ string) *RedisServer
func (*RedisServer) Serve ¶
func (s *RedisServer) Serve(addr string) error
Click to show internal directories.
Click to hide internal directories.