Skip to content

Commit

Permalink
Add Syncer interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwood committed Jun 15, 2024
1 parent 6414db9 commit 1a60e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions impl/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type file struct {
}

var _ persistence.Section = (*file)(nil)
var _ persistence.Syncer = (*file)(nil)

func (f *file) Section(key ...string) persistence.Section {
f.m.Lock()
Expand Down
4 changes: 4 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ type Section interface {
Delete(key string) bool
}

type Syncer interface {
Sync()
}

type ValueType uint8

const (
Expand Down

0 comments on commit 1a60e67

Please sign in to comment.