You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CacheIndex is a unified local instances cache managertypeCacheIndexinterface {
Get(servicestring, tagsmap[string]string) ([]*MicroServiceInstance, bool)
//Set will overwrite all instances correspond to a service nameSet(servicestring, instances []*MicroServiceInstance)
FullCache() *cache.CacheDelete(servicestring)
}
当前的微服务local cache,当前的默认实现使用简单的map结构来存储所有微服务实例信息
需要一种新的数据结构能够快速的根据tags内的kv对进行检索
tag其实就是简单的查询条件,例如version=1.0,app=shop
The text was updated successfully, but these errors were encountered: