New() — fiber Function Reference
Architecture documentation for the New() function in memory.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 5c85ded5_6db9_b076_f6fd_4d231817c63c["New()"] 5c209b8e_493c_b462_178d_8ab949ed52c2["memory.go"] 5c85ded5_6db9_b076_f6fd_4d231817c63c -->|defined in| 5c209b8e_493c_b462_178d_8ab949ed52c2 style 5c85ded5_6db9_b076_f6fd_4d231817c63c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
internal/memory/memory.go lines 39–46
func New() *Storage {
store := &Storage{
data: make(map[string]item),
}
utils.StartTimeStampUpdater()
go store.gc(1 * time.Second)
return store
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does New() do?
New() is a function in the fiber codebase, defined in internal/memory/memory.go.
Where is New() defined?
New() is defined in internal/memory/memory.go at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free