From 12bd3ade4cbc1269e39ba4ea1ff27c8f6ee1590e Mon Sep 17 00:00:00 2001 From: congqixia Date: Thu, 23 Dec 2021 18:13:30 +0800 Subject: [PATCH] [skip e2e] Add comment for proxy Cache and MetaCache struct (#14076) Signed-off-by: Congqi Xia --- internal/proxy/meta_cache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/proxy/meta_cache.go b/internal/proxy/meta_cache.go index 9e55c1d170..cdc43a2ddf 100644 --- a/internal/proxy/meta_cache.go +++ b/internal/proxy/meta_cache.go @@ -35,6 +35,7 @@ import ( "github.com/milvus-io/milvus/internal/util/typeutil" ) +// Cache is the interface for system meta data cache type Cache interface { // GetCollectionID get collection's id by name. GetCollectionID(ctx context.Context, collectionName string) (typeutil.UniqueID, error) @@ -62,6 +63,7 @@ type partitionInfo struct { createdUtcTimestamp uint64 } +// MetaCache implements Cache, provides collection meta cache based on internal RootCoord type MetaCache struct { client types.RootCoord