Lines Matching defs:cache
17 package cache package
63 type cache struct { struct
64 mu sync.RWMutex
65 lru *lru.Cache
68 cachedRanges adt.IntervalTree
70 compactedRev int64
74 func (c *cache) Add(req *pb.RangeRequest, resp *pb.RangeResponse) {
113 func (c *cache) Get(req *pb.RangeRequest) (*pb.RangeResponse, error) {
131 func (c *cache) Invalidate(key, endkey []byte) {
158 func (c *cache) Compact(revision int64) {
167 func (c *cache) Size() int {