Browse Source

SetDeleter/Batch separation

pull/1842/head
Jae Kwon 7 years ago
parent
commit
17dc8a7449
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      db/db.go

+ 5
- 1
db/db.go 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()
}


Loading…
Cancel
Save