Home / Function/ key() — astro Function Reference

key() — astro Function Reference

Architecture documentation for the key() function in route-cache.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  62817829_3a39_357e_33b8_9060451fad09["key()"]
  f2590c8b_da5c_804e_e7c6_accc3dae27c1["RouteCache"]
  62817829_3a39_357e_33b8_9060451fad09 -->|defined in| f2590c8b_da5c_804e_e7c6_accc3dae27c1
  1908c3bf_4f4b_9edf_2e46_d7f8234fb45b["set()"]
  1908c3bf_4f4b_9edf_2e46_d7f8234fb45b -->|calls| 62817829_3a39_357e_33b8_9060451fad09
  5182e483_bd8d_1680_67cd_f665386c9d74["get()"]
  5182e483_bd8d_1680_67cd_f665386c9d74 -->|calls| 62817829_3a39_357e_33b8_9060451fad09
  style 62817829_3a39_357e_33b8_9060451fad09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/render/route-cache.ts lines 119–121

	key(route: RouteData) {
		return `${route.route}_${route.component}`;
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does key() do?
key() is a function in the astro codebase, defined in packages/astro/src/core/render/route-cache.ts.
Where is key() defined?
key() is defined in packages/astro/src/core/render/route-cache.ts at line 119.
What calls key()?
key() is called by 2 function(s): get, set.

Analyze Your Own Codebase

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

Try Supermodel Free