Add GetCommitKVStore and CommitKVStore

This commit is contained in:
Jae Kwon
2018-02-21 09:49:33 -05:00
committed by Ethan Buchman
parent 53812a2076
commit 7f4bcff3cf
4 changed files with 24 additions and 2 deletions
+9
View File
@@ -68,6 +68,9 @@ type CommitMultiStore interface {
// Panics on a nil key.
GetCommitStore(key StoreKey) CommitStore
// Panics on a nil key.
GetCommitKVStore(key StoreKey) CommitKVStore
// Load the latest persisted version. Called once after all
// calls to Mount*Store() are complete.
LoadLatestVersion() error
@@ -129,6 +132,12 @@ type CacheKVStore interface {
Write()
}
// Stores of MultiStore must implement CommitStore.
type CommitKVStore interface {
Committer
KVStore
}
//----------------------------------------
// CacheWrap