新增 cache

This commit is contained in:
dragon
2024-12-27 17:32:02 +08:00
parent 161b49a47b
commit bf46501a10
4 changed files with 161 additions and 3 deletions

View File

@@ -6,6 +6,14 @@ import (
type ServerOptions struct {
Domain string
Cache services.Config
}
func DefaultOptions(domain string) *ServerOptions {
return &ServerOptions{
Domain: domain,
Cache: services.NewConfigMemory(),
}
}
type Server struct {