Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheServer ¶
type CacheServer struct { api.UnimplementedCacheServiceServer // contains filtered or unexported fields }
func NewCacheServer ¶
func NewCacheServer( algo eviction.Algorithm, ) *CacheServer
func (*CacheServer) Get ¶
func (s *CacheServer) Get(_ context.Context, req *api.GetRequest) (*api.GetResponse, error)
func (*CacheServer) Put ¶
func (s *CacheServer) Put(_ context.Context, req *api.PutRequest) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.