package cache
import "go.etcd.io/etcd/server/v3/proxy/grpcproxy/cache"
Package cache exports functionality for efficiently caching and mapping `RangeRequest`s to corresponding `RangeResponse`s.
Index ¶
Variables ¶
var ( DefaultMaxEntries = 2048 ErrCompacted = rpctypes.ErrGRPCCompacted )
Types ¶
type Cache ¶
type Cache interface {
Add(req *pb.RangeRequest, resp *pb.RangeResponse)
Get(req *pb.RangeRequest) (*pb.RangeResponse, error)
Compact(revision int64)
Invalidate(key []byte, endkey []byte)
Size() int
Close()
}
func NewCache ¶
Source Files ¶
store.go
- Version
- v3.7.1 (latest)
- Published
- Jul 23, 2026
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 4 hours ago –
Tools for package owners.