Home / Function/ stableAscendingExpiration() — fiber Function Reference

stableAscendingExpiration() — fiber Function Reference

Architecture documentation for the stableAscendingExpiration() function in cache_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  d85d9be6_add5_aae9_e8ed_6409b730b1bf["stableAscendingExpiration()"]
  8453a087_9678_fe96_1b20_2d125b6f8656["cache_test.go"]
  d85d9be6_add5_aae9_e8ed_6409b730b1bf -->|defined in| 8453a087_9678_fe96_1b20_2d125b6f8656
  31dd5852_b2cf_8dce_017d_cea1827a4853["Test_Cache_MaxBytesOrder()"]
  31dd5852_b2cf_8dce_017d_cea1827a4853 -->|calls| d85d9be6_add5_aae9_e8ed_6409b730b1bf
  42fcb8e0_c98e_062d_214f_ac044cda848a["Test_Cache_MaxBytesSizes()"]
  42fcb8e0_c98e_062d_214f_ac044cda848a -->|calls| d85d9be6_add5_aae9_e8ed_6409b730b1bf
  6f8eb8fa_11bb_adef_bb23_83f65cf1c584["Test_Cache_RevalidationWithMaxBytes()"]
  6f8eb8fa_11bb_adef_bb23_83f65cf1c584 -->|calls| d85d9be6_add5_aae9_e8ed_6409b730b1bf
  77c5626b_1268_4a06_2e5d_21e7787ba6b2["Test_Cache_MaxBytes_InsufficientSpace()"]
  77c5626b_1268_4a06_2e5d_21e7787ba6b2 -->|calls| d85d9be6_add5_aae9_e8ed_6409b730b1bf
  style d85d9be6_add5_aae9_e8ed_6409b730b1bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/cache/cache_test.go lines 1397–1403

func stableAscendingExpiration() func(c1 fiber.Ctx, c2 *Config) time.Duration {
	i := 0
	return func(_ fiber.Ctx, _ *Config) time.Duration {
		i++
		return time.Hour * time.Duration(i)
	}
}

Subdomains

Frequently Asked Questions

What does stableAscendingExpiration() do?
stableAscendingExpiration() is a function in the fiber codebase, defined in middleware/cache/cache_test.go.
Where is stableAscendingExpiration() defined?
stableAscendingExpiration() is defined in middleware/cache/cache_test.go at line 1397.
What calls stableAscendingExpiration()?
stableAscendingExpiration() is called by 4 function(s): Test_Cache_MaxBytesOrder, Test_Cache_MaxBytesSizes, Test_Cache_MaxBytes_InsufficientSpace, Test_Cache_RevalidationWithMaxBytes.

Analyze Your Own Codebase

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

Try Supermodel Free