SetDeleter/Batch separation

This commit is contained in:
Jae Kwon 2017-12-03 21:44:48 -08:00
parent 56e51bc113
commit 17dc8a7449
1 changed files with 5 additions and 1 deletions

View File

@ -27,9 +27,13 @@ type CacheDB interface {
Write() // Write to the underlying DB
}
type Batch interface {
type SetDeleter interface {
Set(key, value []byte)
Delete(key []byte)
}
type Batch interface {
SetDeleter
Write()
}