[skip e2e] Add comment for proxy Cache and MetaCache struct (#14076)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/14089/head
congqixia 2021-12-23 18:13:30 +08:00 committed by GitHub
parent df90402a7f
commit 12bd3ade4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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