MCPcopy
hub / github.com/esm-dev/esm.sh / NewBuildMetaDB

Function NewBuildMetaDB

server/build_meta.go:110–116  ·  view source on GitHub ↗
(backStorage storage.Storage)

Source from the content-addressed store, hash-verified

108}
109
110func NewBuildMetaDB(backStorage storage.Storage) *BuildMetaDB {
111 cache, err := lru.New[string, []byte](lruCacheCapacity)
112 if err != nil {
113 panic(err)
114 }
115 return &BuildMetaDB{cache: cache, storage: backStorage}
116}
117
118func (db *BuildMetaDB) Get(key string) (value []byte, err error) {
119 var cached bool

Callers 1

esmRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected