nali/internal/db/cache.go
2022-07-28 09:53:59 +08:00

19 lines
251 B
Go

package db
import (
"sync"
"github.com/zu1k/nali/pkg/dbif"
)
var (
dbNameCache = make(map[string]dbif.DB)
dbTypeCache = make(map[dbif.QueryType]dbif.DB)
queryCache = sync.Map{}
)
var (
NameDBMap = make(NameMap)
TypeDBMap = make(TypeMap)
)