etcd: github.com/coreos/etcd/proxy/grpcproxy/cache Index | Files

package cache

import "github.com/coreos/etcd/proxy/grpcproxy/cache"

Package cache exports functionality for efficiently caching and mapping `RangeRequest`s to corresponding `RangeResponse`s.

Index

Package Files

store.go

Variables

var (
    DefaultMaxEntries = 2048
    ErrCompacted      = rpctypes.ErrGRPCCompacted
)

type Cache Uses

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 Uses

func NewCache(maxCacheEntries int) Cache

Package cache imports 6 packages (graph) and is imported by 18 packages. Updated 2019-08-01. Refresh now. Tools for package owners.