diff --git a/api.go b/api.go index b3de050..c3ef8bc 100644 --- a/api.go +++ b/api.go @@ -272,6 +272,10 @@ func NewDiskLRU( return nil, err } + if opts.ClearOnStart { + self.clear_stm.Exec() + } + // Run the housekeep thread go self.houseKeeping(sub_ctx)