clampDateSeconds() — fiber Function Reference
Architecture documentation for the clampDateSeconds() function in cache.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 03bedd00_a450_6002_7e6e_f9a1125a9591["clampDateSeconds()"] af95e058_7e86_ec88_42f0_cd294e342508["cache.go"] 03bedd00_a450_6002_7e6e_f9a1125a9591 -->|defined in| af95e058_7e86_ec88_42f0_cd294e342508 96447356_67b9_a364_148e_b703c487e1ba["New()"] 96447356_67b9_a364_148e_b703c487e1ba -->|calls| 03bedd00_a450_6002_7e6e_f9a1125a9591 91ff379d_ad97_f896_9c48_6574a957d3c1["cachedResponseAge()"] 91ff379d_ad97_f896_9c48_6574a957d3c1 -->|calls| 03bedd00_a450_6002_7e6e_f9a1125a9591 style 03bedd00_a450_6002_7e6e_f9a1125a9591 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/cache/cache.go lines 1219–1226
func clampDateSeconds(dateSeconds, fallback uint64) uint64 {
const maxUnixSeconds = uint64(math.MaxInt64)
if dateSeconds == 0 || dateSeconds > maxUnixSeconds || dateSeconds > fallback {
return fallback
}
return dateSeconds
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does clampDateSeconds() do?
clampDateSeconds() is a function in the fiber codebase, defined in middleware/cache/cache.go.
Where is clampDateSeconds() defined?
clampDateSeconds() is defined in middleware/cache/cache.go at line 1219.
What calls clampDateSeconds()?
clampDateSeconds() is called by 2 function(s): New, cachedResponseAge.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free