Cache cakes in memory and update SQL logic

This commit is contained in:
bronku 2025-03-26 12:12:33 +01:00
parent 4b2fcbc58a
commit 066295bbe5
4 changed files with 88 additions and 45 deletions

View file

@ -22,6 +22,10 @@ func OpenStore(filename string) *Store {
}
out.loadMigrations()
out.cakes, err = out.loadCakes()
if err != nil {
log.Fatal(err)
}
return &out
}