Add cache into post filter by user context

This commit is contained in:
2024-12-09 22:38:44 +08:00
parent 39889fe43d
commit 03f72d548d
5 changed files with 520 additions and 29 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"fmt"
pkg "git.solsynth.dev/hypernet/interactive/pkg/internal"
"git.solsynth.dev/hypernet/interactive/pkg/internal/cache"
"git.solsynth.dev/hypernet/interactive/pkg/internal/gap"
"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
"github.com/fatih/color"
@@ -68,6 +69,11 @@ func main() {
quartz.AddFunc("@every 60m", services.DoAutoDatabaseCleanup)
quartz.Start()
// Initialize cache
if err := cache.NewStore(); err != nil {
log.Fatal().Err(err).Msg("An error occurred when initializing cache.")
}
// App
go http.NewServer().Listen()