public interface ConfigurationPropertyCaching
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clear the cache and force it to be reloaded on next access. 
 | 
void | 
disable()
Disable caching. 
 | 
void | 
enable()
Enable caching with an unlimited time-to-live. 
 | 
static ConfigurationPropertyCaching | 
get(Environment environment)
Get for all configuration property sources in the environment. 
 | 
static ConfigurationPropertyCaching | 
get(Environment environment,
   Object underlyingSource)
Get for a specific configuration property source in the environment. 
 | 
static ConfigurationPropertyCaching | 
get(Iterable<ConfigurationPropertySource> sources)
Get for all specified configuration property sources. 
 | 
static ConfigurationPropertyCaching | 
get(Iterable<ConfigurationPropertySource> sources,
   Object underlyingSource)
Get for a specific configuration property source in the specified configuration
 property sources. 
 | 
void | 
setTimeToLive(Duration timeToLive)
Set amount of time that an item can live in the cache. 
 | 
void enable()
void disable()
void setTimeToLive(Duration timeToLive)
timeToLive - the time to live value.void clear()
static ConfigurationPropertyCaching get(Environment environment)
environment - the spring environmentstatic ConfigurationPropertyCaching get(Environment environment, Object underlyingSource)
environment - the spring environmentunderlyingSource - the
 underlying source that
 must matchstatic ConfigurationPropertyCaching get(Iterable<ConfigurationPropertySource> sources)
sources - the configuration property sourcesstatic ConfigurationPropertyCaching get(Iterable<ConfigurationPropertySource> sources, Object underlyingSource)
sources - the configuration property sourcesunderlyingSource - the
 underlying source that
 must match