Versions in this module Expand all Collapse all v1 v1.21.34 Jun 30, 2026 Changes in this version + var NegInf = Bound + var PosInf = Bound + type Bound struct + Inclusive bool + Inf int8 + Score float64 + func Exclusive(s float64) Bound + func Inclusive(s float64) Bound + func (b Bound) Redis() string + type Store interface + Del func(ctx context.Context, key string) error + Expire func(ctx context.Context, key string, ttl time.Duration) error + Get func(ctx context.Context, key string) ([]byte, error) + Set func(ctx context.Context, key string, value []byte, ttl time.Duration) error + ZAdd func(ctx context.Context, key string, score float64, member string) error + ZRangeByScore func(ctx context.Context, key string, lower, upper Bound) ([]string, error) + ZRem func(ctx context.Context, key, member string) error + ZRemRangeByRank func(ctx context.Context, key string, start, stop int64) error + ZRemRangeByScore func(ctx context.Context, key string, lower, upper Bound) error + ZRevRange func(ctx context.Context, key string, start, stop int64) ([]string, error) + func NewMemory() Store v1.21.33 Jun 28, 2026 v1.21.32 Jun 26, 2026 v1.21.31 Jun 26, 2026 v1.21.30 Jun 26, 2026 v1.21.29 Jun 26, 2026 v1.21.28 Jun 23, 2026 v1.21.27 Jun 23, 2026 v1.21.26 Jun 23, 2026 v1.21.25 Jun 20, 2026 v1.21.24 Jun 16, 2026 v1.21.23 Jun 15, 2026 v1.21.22 Jun 15, 2026 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