1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-22 21:29:02 +08:00
nali/internal/db/cache.go

19 lines
251 B
Go
Raw Normal View History

2021-08-02 12:01:25 +08:00
package db
2022-07-28 09:53:59 +08:00
import (
"sync"
"github.com/zu1k/nali/pkg/dbif"
)
2021-08-02 12:01:25 +08:00
var (
dbNameCache = make(map[string]dbif.DB)
dbTypeCache = make(map[dbif.QueryType]dbif.DB)
2022-07-28 09:53:59 +08:00
queryCache = sync.Map{}
)
var (
NameDBMap = make(NameMap)
TypeDBMap = make(TypeMap)
)