MCPcopy Create free account
hub / github.com/Permify/permify / Memory

Struct Memory

pkg/database/memory/memory.go:11–17  ·  view source on GitHub ↗

Memory - Structure for in memory db

Source from the content-addressed store, hash-verified

9
10// Memory - Structure for in memory db
11type Memory struct {
12 sync.RWMutex
13 rid uint64
14 aid uint64
15
16 DB *memdb.MemDB
17}
18
19// New - Creates new database schema in memory
20func New(schema *memdb.DBSchema) (*Memory, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected