Caching — fiber Architecture
Handles server-side response caching and ETag generation
Entity Profile
Dependency Diagram
graph TD subdomain_FiberMiddleware_Caching["Caching"] 91ff16cc_5e69_6619_dbd9_17643ce37c22["limiter_sliding.go"] subdomain_FiberMiddleware_Caching --> 91ff16cc_5e69_6619_dbd9_17643ce37c22 af95e058_7e86_ec88_42f0_cd294e342508["cache.go"] subdomain_FiberMiddleware_Caching --> af95e058_7e86_ec88_42f0_cd294e342508 5f61d399_7b5a_6a35_411a_ef0a25ea52d4["manager.go"] subdomain_FiberMiddleware_Caching --> 5f61d399_7b5a_6a35_411a_ef0a25ea52d4 8453a087_9678_fe96_1b20_2d125b6f8656["cache_test.go"] subdomain_FiberMiddleware_Caching --> 8453a087_9678_fe96_1b20_2d125b6f8656 c6253bbf_a478_e481_4b02_a86f58ccf743["limiter.go"] subdomain_FiberMiddleware_Caching --> c6253bbf_a478_e481_4b02_a86f58ccf743 37e95407_448c_08f5_e0f2_e58bc4d8ec94["config.go"] subdomain_FiberMiddleware_Caching --> 37e95407_448c_08f5_e0f2_e58bc4d8ec94 08818df7_dd43_9ad6_2702_85ab61e69784["manager_msgp_test.go"] subdomain_FiberMiddleware_Caching --> 08818df7_dd43_9ad6_2702_85ab61e69784 style subdomain_FiberMiddleware_Caching fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- BenchmarkAppendMsgitem()
- BenchmarkDecodeitem()
- BenchmarkDecodeitem()
- BenchmarkEncodecachedHeader()
- BenchmarkMarshalMsgcachedHeader()
- BenchmarkUnmarshalcachedHeader()
- BenchmarkUnmarshalitem()
- Benchmark_Cache_Miss()
- Benchmark_Limiter()
- Ctx()
- New()
- New()
- TestCacheAgeHeader()
- TestCacheCleanupPropagatesRequestContextToDelete()
- TestCacheEvictionPropagatesRequestContextToDelete()
- TestCacheUpstreamAge()
- TestEncodeDecodeitem()
- TestMarshalUnmarshalitem()
- TestMarshalUnmarshalitem()
- Test_AllowsSharedCache()
- Test_Cache()
- Test_CacheAgeHeaderIsCappedAtMaxDeltaSeconds()
- Test_CacheClampsFutureStoredDate()
- Test_CacheClampsInvalidStoredDate()
- Test_CacheControlNotOverwritten()
- Test_CacheExpiresFutureAllowsCaching()
- Test_CacheExpiresPastPreventsCaching()
- Test_CacheHeader()
- Test_CacheHeuristicFreshnessAddsWarning113()
- Test_CacheHeuristicFreshnessAddsWarning113AfterThreshold()
- Test_CacheInvalidExpiresStoredAsStale()
- Test_CacheInvalidation()
- Test_CacheInvalidation_noCacheEntry()
- Test_CacheInvalidation_removeFromHeap()
- Test_CacheMaxAgeDirective()
- Test_CacheMaxStaleRespectsMustRevalidate()
- Test_CacheMaxStaleServesStaleResponse()
- Test_CacheMinFreshForcesRevalidation()
- Test_CacheNoCacheDirective()
- Test_CacheNoCacheDirectiveOverridesExistingEntry()
- Test_CacheNoStoreDirective()
- Test_CacheOnlyIfCachedMiss()
- Test_CacheOnlyIfCachedStaleNotServed()
- Test_CachePermanentRedirectCached()
- Test_CachePrivateDirective()
- Test_CachePrivateDirectiveInvalidatesExistingEntry()
- Test_CacheRequestMaxAgeRevalidates()
- Test_CacheRespectsUpstreamAgeForFreshness()
- Test_CacheSMaxAgeOverridesMaxAgeWhenLonger()
- Test_CacheSMaxAgeOverridesMaxAgeWhenShorter()
- Test_CacheStaleResponseAddsWarning110()
- Test_CacheVarySeparatesVariants()
- Test_CacheVaryStarUncacheable()
- Test_Cache_CacheControl()
- Test_Cache_CacheControlCombinations()
- Test_Cache_CacheControl_Disabled()
- Test_Cache_ConfigurationAndResponseHandling()
- Test_Cache_CustomNext()
- Test_Cache_Expired()
- Test_Cache_Get()
- Test_Cache_Invalid_Expiration()
- Test_Cache_MaxBytesOrder()
- Test_Cache_MaxBytesSizes()
- Test_Cache_MaxBytes_DeletionFailureRestoresTracking()
- Test_Cache_NothingToCache()
- Test_Cache_Post()
- Test_Cache_RequestResponseDirectives()
- Test_Cache_RevalidationWithMaxBytes()
- Test_Cache_UncacheableStatusCodes()
- Test_Cache_WithHead()
- Test_Cache_WithHeadThenGet()
- Test_Cache_WithNoCacheRequestDirective()
- Test_Cache_WithNoStoreRequestDirective()
- Test_Cache_WithSeveralRequests()
- Test_CustomCacheHeader()
- Test_CustomExpiration()
- Test_CustomKey()
- Test_Limiter_Bug_NewErrorf_SkipSuccessfulRequests_SlidingWindow()
- Test_Limiter_Concurrency_Store()
- Test_Limiter_Fixed_ExpirationFuncOverridesStaticExpiration()
- Test_Limiter_Fixed_ExpirationFunc_FallbackOnNegativeDuration()
- Test_Limiter_Fixed_Window_Skip_Successful_Requests()
- Test_Limiter_Sliding_MaxFuncOverridesStaticMax()
- Test_Limiter_Sliding_Window_No_Skip_Choices()
- Test_Limiter_Sliding_Window_SkipFailedRequests_DecrementsPreviousWindow()
- Test_ParseMaxAge()
- Test_RequestPragmaNoCacheTriggersMiss()
- Test_manager_logKey()
- Test_unquoteCacheDirective()
- allowsSharedCache()
- allowsSharedCacheDirectives()
- bool()
- cacheBodyFetchError()
- cachedResponseAge()
- canceledContextWithMarker()
- clampDateSeconds()
- contextRecordFrom()
- contextWithMarker()
- contextWithMarker()
- hasDirective()
- int()
- isHeuristicFreshness()
- key()
- loadVaryManifest()
- lookupCachedHeader()
- makeBuildVaryKeyFunc()
- newManager()
- parseCacheControlDirectives()
- parseHTTPDate()
- parseMaxAge()
- parseRequestCacheControl()
- parseRequestCacheControlString()
- parseResponseCacheControl()
- parseUintDirective()
- parseVary()
- remainingFreshness()
- rotateWindow()
- safeUnixSeconds()
- secondsToDuration()
- secondsToDuration()
- secondsToTime()
- setResponseDate()
- stableAscendingExpiration()
- storeVaryManifest()
- string()
- unquoteCacheDirective()
Source Files
Source
Frequently Asked Questions
What is the Caching subdomain?
Caching is a subdomain in the fiber codebase, part of the FiberMiddleware domain. Handles server-side response caching and ETag generation It contains 7 source files.
Which domain does Caching belong to?
Caching belongs to the FiberMiddleware domain.
What functions are in Caching?
The Caching subdomain contains 126 function(s): BenchmarkAppendMsgitem, BenchmarkDecodeitem, BenchmarkDecodeitem, BenchmarkEncodecachedHeader, BenchmarkMarshalMsgcachedHeader, BenchmarkUnmarshalcachedHeader, BenchmarkUnmarshalitem, Benchmark_Cache_Miss, and 118 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free