New() — fiber Function Reference
Architecture documentation for the New() function in memory.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD bb328d17_d22e_05ba_fd3c_383029081f4e["New()"] f453bafc_46b1_3619_f926_e077889a65a9["memory.go"] bb328d17_d22e_05ba_fd3c_383029081f4e -->|defined in| f453bafc_46b1_3619_f926_e077889a65a9 style bb328d17_d22e_05ba_fd3c_383029081f4e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
internal/storage/memory/memory.go lines 31–47
func New(config ...Config) *Storage {
// Set default config
cfg := configDefault(config...)
// Create storage
store := &Storage{
db: make(map[string]Entry),
gcInterval: cfg.GCInterval,
done: make(chan struct{}),
}
// Start garbage collector
utils.StartTimeStampUpdater()
go store.gc()
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/storage/memory/memory.go.
Where is New() defined?
New() is defined in internal/storage/memory/memory.go at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free