sql queries T.T

This commit is contained in:
Fenny
2020-11-05 06:01:59 +01:00
parent 2458ab7395
commit 5571999805
6 changed files with 31 additions and 1 deletions

View File

@@ -158,6 +158,11 @@ func (s *Storage) Clear() error {
return err
}
// Close the storage
func (s *Storage) Close() error {
return s.db.Close()
}
// GC deletes all expired entries
func (s *Storage) gc() {
tick := time.NewTicker(s.gcInterval)