SetDeleter/Batch separation
This commit is contained in:
parent
56e51bc113
commit
17dc8a7449
6
db/db.go
6
db/db.go
|
@ -27,9 +27,13 @@ type CacheDB interface {
|
||||||
Write() // Write to the underlying DB
|
Write() // Write to the underlying DB
|
||||||
}
|
}
|
||||||
|
|
||||||
type Batch interface {
|
type SetDeleter interface {
|
||||||
Set(key, value []byte)
|
Set(key, value []byte)
|
||||||
Delete(key []byte)
|
Delete(key []byte)
|
||||||
|
}
|
||||||
|
|
||||||
|
type Batch interface {
|
||||||
|
SetDeleter
|
||||||
Write()
|
Write()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue