Home / Type/ requestCacheDirectives Type — fiber Architecture

requestCacheDirectives Type — fiber Architecture

Architecture documentation for the requestCacheDirectives type/interface in cache.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  154ec01e_cf7a_6d99_8994_11e5a0170916["requestCacheDirectives"]
  af95e058_7e86_ec88_42f0_cd294e342508["cache.go"]
  154ec01e_cf7a_6d99_8994_11e5a0170916 -->|defined in| af95e058_7e86_ec88_42f0_cd294e342508
  style 154ec01e_cf7a_6d99_8994_11e5a0170916 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/cache/cache.go lines 60–72

type requestCacheDirectives struct {
	maxAge   uint64
	maxStale uint64
	minFresh uint64

	maxAgeSet    bool
	maxStaleSet  bool
	maxStaleAny  bool
	minFreshSet  bool
	noStore      bool
	noCache      bool
	onlyIfCached bool
}

Frequently Asked Questions

What is the requestCacheDirectives type?
requestCacheDirectives is a type/interface in the fiber codebase, defined in middleware/cache/cache.go.
Where is requestCacheDirectives defined?
requestCacheDirectives is defined in middleware/cache/cache.go at line 60.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free