Versions in this module Expand all Collapse all v3 v3.4.15 Feb 24, 2021 Changes in this version + var DefaultMaxEntries = 2048 + var ErrCompacted = rpctypes.ErrGRPCCompacted + type Cache interface + Add func(req *pb.RangeRequest, resp *pb.RangeResponse) + Close func() + Compact func(revision int64) + Get func(req *pb.RangeRequest) (*pb.RangeResponse, error) + Invalidate func(key []byte, endkey []byte) + Size func() int + func NewCache(maxCacheEntries int) Cache