nali/internal/db/cache.go

19 lines
251 B
Go
Raw Normal View History

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