Skip to content

Commit 1a60e67

Browse files
committed
Add Syncer interface.
1 parent 6414db9 commit 1a60e67

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

impl/file/file.go

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type file struct {
3636
}
3737

3838
var _ persistence.Section = (*file)(nil)
39+
var _ persistence.Syncer = (*file)(nil)
3940

4041
func (f *file) Section(key ...string) persistence.Section {
4142
f.m.Lock()

interface.go

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ type Section interface {
2222
Delete(key string) bool
2323
}
2424

25+
type Syncer interface {
26+
Sync()
27+
}
28+
2529
type ValueType uint8
2630

2731
const (

0 commit comments

Comments
 (0)