Versions in this module Expand all Collapse all v1 v1.21.21 Jun 14, 2026 Changes in this version + var ErrKeyNotFound = errors.New("cache: key not found") + func Handler(b Browser, prefix string) http.Handler + func RegisterRoutes(mux *http.ServeMux, b Browser, prefix string) + type Browser interface + DeleteKey func(ctx context.Context, key string) (DeleteResponse, error) + DeletePrefix func(ctx context.Context, prefix string) (DeleteResponse, error) + Key func(ctx context.Context, key string) (KeyDetail, error) + Search func(ctx context.Context, req SearchRequest) (SearchResponse, error) + Stats func(ctx context.Context) (Stats, error) + Tree func(ctx context.Context, req TreeRequest) (TreeResponse, error) + type DeleteResponse struct + Deleted int64 + type KeyDetail struct + Bytes int64 + Fields map[string]string + Items []string + Key string + Length int64 + Members []ScoredMember + TTLSeconds int64 + Truncated bool + Type string + Value string + type ScoredMember struct + Member string + Score float64 + type SearchRequest struct + Limit int + Query string + type SearchResponse struct + Keys []TreeNode + Truncated bool + type Stats struct + ConnectedClients int64 + EvictedKeys int64 + ExpiredKeys int64 + Hits int64 + InfoError string + Keys int64 + KeysTruncated bool + MaxMemoryBytes int64 + Misses int64 + UptimeSeconds int64 + UsedMemoryBytes int64 + Version string + type TreeNode struct + Bytes int64 + Children int + Key string + Keys int + Name string + Prefix string + TTLSeconds int64 + Type string + type TreeRequest struct + MaxChildren int + Prefix string + type TreeResponse struct + BytesSupported bool + Keys int + Nodes []TreeNode + Prefix string + Truncated bool v1.21.20 Jun 14, 2026 v1.21.19 Jun 12, 2026 v1.21.18 Jun 11, 2026