Home / Function/ cacheTtl() — spring-boot Function Reference

cacheTtl() — spring-boot Function Reference

Architecture documentation for the cacheTtl() function in EndpointMetadataGenerationTests.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 4 called by 8

Entity Profile

Dependency Diagram

graph TD
  75ef14b3_32fe_e68e_87cc_2720b865a960["cacheTtl()"]
  28051e97_2dd5_2595_3a23_ce5b55bad828["simpleEndpoint()"]
  28051e97_2dd5_2595_3a23_ce5b55bad828 -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  b622df0d_f3c8_7209_008e_f144a1fd7544["customPropertiesEndpoint()"]
  b622df0d_f3c8_7209_008e_f144a1fd7544 -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  a4e14b19_7efb_63c9_fb13_3ab8b08c9496["specificEndpoint()"]
  a4e14b19_7efb_63c9_fb13_3ab8b08c9496 -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  d009ae15_94bb_7105_7ee8_ead56242a813["incrementalEndpointBuildChangeDefaultAccess()"]
  d009ae15_94bb_7105_7ee8_ead56242a813 -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  ba6daf25_89db_7ff9_3147_327e9578a1ec["incrementalEndpointBuildChangeCacheFlag()"]
  ba6daf25_89db_7ff9_3147_327e9578a1ec -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  c8c5d0bb_bbdd_8ef7_f41e_f8ef287053b1["incrementalEndpointBuildChangeAccessOfSpecificEndpoint()"]
  c8c5d0bb_bbdd_8ef7_f41e_f8ef287053b1 -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  adb42b89_3f6a_de8a_4812_24bf36bf7793["shouldTolerateEndpointWithSameId()"]
  adb42b89_3f6a_de8a_4812_24bf36bf7793 -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  9ea6c8bd_645c_fb02_c782_023c9e03f1fd["endpointWithNullableParameter()"]
  9ea6c8bd_645c_fb02_c782_023c9e03f1fd -->|calls| 75ef14b3_32fe_e68e_87cc_2720b865a960
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  75ef14b3_32fe_e68e_87cc_2720b865a960 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  70751124_3e92_ed3e_7f93_61d2e98490d3["ofType()"]
  75ef14b3_32fe_e68e_87cc_2720b865a960 -->|calls| 70751124_3e92_ed3e_7f93_61d2e98490d3
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  75ef14b3_32fe_e68e_87cc_2720b865a960 -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  facc73e3_5f28_4513_9b1f_79367931e644["withDescription()"]
  75ef14b3_32fe_e68e_87cc_2720b865a960 -->|calls| facc73e3_5f28_4513_9b1f_79367931e644
  style 75ef14b3_32fe_e68e_87cc_2720b865a960 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/EndpointMetadataGenerationTests.java lines 219–224

	private Metadata.MetadataItemCondition cacheTtl(String endpointId) {
		return Metadata.withProperty("management.endpoint." + endpointId + ".cache.time-to-live")
			.ofType(Duration.class)
			.withDefaultValue("0ms")
			.withDescription("Maximum time that a response can be cached.");
	}

Domain

Subdomains

Frequently Asked Questions

What does cacheTtl() do?
cacheTtl() is a function in the spring-boot codebase.
What does cacheTtl() call?
cacheTtl() calls 4 function(s): ofType, withDefaultValue, withDescription, withProperty.
What calls cacheTtl()?
cacheTtl() is called by 8 function(s): customPropertiesEndpoint, endpointWithNullableParameter, incrementalEndpointBuildChangeAccessOfSpecificEndpoint, incrementalEndpointBuildChangeCacheFlag, incrementalEndpointBuildChangeDefaultAccess, shouldTolerateEndpointWithSameId, simpleEndpoint, specificEndpoint.

Analyze Your Own Codebase

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

Try Supermodel Free