mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
[skip ci] Refine comment in minio kv (#12004)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
This commit is contained in:
parent
776a01b5b9
commit
bcb7cce026
@ -94,13 +94,13 @@ func NewMinIOKV(ctx context.Context, option *Option) (*MinIOKV, error) {
|
||||
return kv, nil
|
||||
}
|
||||
|
||||
// Exist check whether a key exists in MinIO.
|
||||
// Exist checks whether a key exists in MinIO.
|
||||
func (kv *MinIOKV) Exist(key string) bool {
|
||||
_, err := kv.minioClient.StatObject(kv.ctx, kv.bucketName, key, minio.StatObjectOptions{})
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// LoadWithPrefix load objects with the same prefix @key from minio .
|
||||
// LoadWithPrefix loads objects with the same prefix @key from minio .
|
||||
func (kv *MinIOKV) LoadWithPrefix(key string) ([]string, []string, error) {
|
||||
objects := kv.minioClient.ListObjects(kv.ctx, kv.bucketName, minio.ListObjectsOptions{Prefix: key})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user