src/server/pkg/cache/server/server.go
func NewCacheServer(router shard.Router, shards uint64) CacheServer {
	server := &groupCacheServer{
		Logger:      log.NewLogger("CacheServer"),
		router:      router,
		localShards: make(map[uint64]bool),
		shards:      shards,
	}
	groupcache.RegisterPeerPicker(func() groupcache.PeerPicker { return server })
	return server
}
func NewCacheServer(router shard.Router, shards uint64) CacheServer {
	server := &groupCacheServer{
		Logger:      log.NewLogger("CacheServer"),
		router:      router,
		localShards: make(map[uint64]bool),
		shards:      shards,
	}
	groupcache.RegisterPeerPicker(func() groupcache.PeerPicker { return server })
	return server
}
func NewCacheServer ( router shard . Router , shards uint64 ) CacheServer { server := & groupCacheServer { Logger : log . NewLogger ( " " ) , router : router , localShards : make ( map [ uint64 ] bool ) , shards : shards , } groupcache . RegisterPeerPicker ( func ( ) groupcache . PeerPicker { return server } ) return server }
// NewCacheServer creates a new CacheServer.
NewCacheServer creates a new CacheServer .