Lines Matching defs:cache
17 package cache package
64 type cache struct { struct
65 mu sync.RWMutex
66 lru *lru.Cache
69 cachedRanges adt.IntervalTree
71 compactedRev int64
75 func (c *cache) Add(req *pb.RangeRequest, resp *pb.RangeResponse) {
114 func (c *cache) Get(req *pb.RangeRequest) (*pb.RangeResponse, error) {
132 func (c *cache) Invalidate(key, endkey []byte) {
159 func (c *cache) Compact(revision int64) {
168 func (c *cache) Size() int {