newMutatingStorage() — fiber Function Reference
Architecture documentation for the newMutatingStorage() function in cache_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae["newMutatingStorage()"] 8453a087_9678_fe96_1b20_2d125b6f8656["cache_test.go"] a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae -->|defined in| 8453a087_9678_fe96_1b20_2d125b6f8656 f2cbcff5_0b48_ba3b_5319_d2a265d9e0f9["Test_CacheClampsInvalidStoredDate()"] f2cbcff5_0b48_ba3b_5319_d2a265d9e0f9 -->|calls| a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae a6b33eb7_3eab_ba64_f4f4_025b33c5d0bc["Test_CacheClampsFutureStoredDate()"] a6b33eb7_3eab_ba64_f4f4_025b33c5d0bc -->|calls| a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae 97d1752a_3e98_f5e6_a792_e22705d64bbb["Test_CacheHeuristicFreshnessAddsWarning113AfterThreshold()"] 97d1752a_3e98_f5e6_a792_e22705d64bbb -->|calls| a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae eb0dffee_2b81_60c9_1ae7_42345b93db84["Test_CacheAgeHeaderIsCappedAtMaxDeltaSeconds()"] eb0dffee_2b81_60c9_1ae7_42345b93db84 -->|calls| a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae style a76eea88_fb7a_293c_1e6a_ee5f49e6d6ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/cache/cache_test.go lines 48–53
func newMutatingStorage(mutate func(key string, value []byte) []byte) *mutatingStorage {
return &mutatingStorage{
data: make(map[string][]byte),
mutate: mutate,
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does newMutatingStorage() do?
newMutatingStorage() is a function in the fiber codebase, defined in middleware/cache/cache_test.go.
Where is newMutatingStorage() defined?
newMutatingStorage() is defined in middleware/cache/cache_test.go at line 48.
What calls newMutatingStorage()?
newMutatingStorage() is called by 4 function(s): Test_CacheAgeHeaderIsCappedAtMaxDeltaSeconds, Test_CacheClampsFutureStoredDate, Test_CacheClampsInvalidStoredDate, Test_CacheHeuristicFreshnessAddsWarning113AfterThreshold.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free