MCPcopy
hub / github.com/milvus-io/milvus / BaseKV

Interface BaseKV

pkg/kv/kv.go:43–55  ·  view source on GitHub ↗

BaseKV contains base operations of kv. Include save, load and remove.

Source from the content-addressed store, hash-verified

41
42// BaseKV contains base operations of kv. Include save, load and remove.
43type BaseKV interface {
44 Load(ctx context.Context, key string) (string, error)
45 MultiLoad(ctx context.Context, keys []string) ([]string, error)
46 LoadWithPrefix(ctx context.Context, key string) ([]string, []string, error)
47 Save(ctx context.Context, key, value string) error
48 MultiSave(ctx context.Context, kvs map[string]string) error
49 Remove(ctx context.Context, key string) error
50 MultiRemove(ctx context.Context, keys []string) error
51 RemoveWithPrefix(ctx context.Context, key string) error
52 Has(ctx context.Context, key string) (bool, error)
53 HasPrefix(ctx context.Context, prefix string) (bool, error)
54 Close()
55}
56
57// TxnKV contains extra txn operations of kv. The extra operations is transactional.
58//

Callers 75

RetrieveMethod · 0.65
RoundTripMethod · 0.65
TestReliableWriteMetaKvFunction · 0.65
allocMsgIDMethod · 0.65
InfoMethod · 0.65
CreateTopicMethod · 0.65
DestroyTopicMethod · 0.65
TestEmbedEtcdFunction · 0.65
TestTiKVLoadFunction · 0.65
TestEmptyKeyFunction · 0.65

Implementers 15

RocksdbKVpkg/kv/rocksdb/rocksdb_kv.go
MockWatchKVpkg/mocks/mock_kv/mock_WatchKV.go
MockWatchKV_Expecterpkg/mocks/mock_kv/mock_WatchKV.go
MockMetaKvpkg/mocks/mock_kv/mock_MetaKv.go
MockMetaKv_Expecterpkg/mocks/mock_kv/mock_MetaKv.go
etcdKVinternal/kv/etcd/etcd_kv.go
EmbedEtcdKVinternal/kv/etcd/embed_etcd_kv.go
WatchKVinternal/kv/mocks/watch_kv.go
WatchKV_Expecterinternal/kv/mocks/watch_kv.go
TxnKVinternal/kv/mocks/txn_kv.go
TxnKV_Expecterinternal/kv/mocks/txn_kv.go
MetaKvinternal/kv/mocks/meta_kv.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…