mapredis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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