Test changes.
This commit is contained in:
+4
-2
@@ -9,7 +9,7 @@ import (
|
||||
func main() {
|
||||
tc := persist.TidyConfig{
|
||||
Interval: 2 * time.Second,
|
||||
Func:persist.ExpireAfter(-5 * time.Second),
|
||||
Func: persist.ExpireAfter(-5 * time.Second),
|
||||
}
|
||||
persist.Init(persist.Config{Tidy: tc})
|
||||
|
||||
@@ -20,7 +20,9 @@ func main() {
|
||||
x.Set(3)
|
||||
persist.Commit()
|
||||
fmt.Println(x.History())
|
||||
time.Sleep(time.Second * 15)
|
||||
time.Sleep(time.Second * 3)
|
||||
fmt.Println(x.History())
|
||||
time.Sleep(time.Second * 3)
|
||||
fmt.Println(x.History())
|
||||
persist.Shutdown()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user