Class CacheProperties.Redis
- java.lang.Object
- org.springframework.boot.autoconfigure.cache.CacheProperties.Redis
- Enclosing class:
- CacheProperties
public static class CacheProperties.Redis extends Object
Redis-specific cache properties.
Constructor Summary
Constructors Constructor Description Redis()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKeyPrefix()DurationgetTimeToLive()booleanisCacheNullValues()booleanisUseKeyPrefix()voidsetCacheNullValues(boolean cacheNullValues)voidsetKeyPrefix(String keyPrefix)voidsetTimeToLive(Duration timeToLive)voidsetUseKeyPrefix(boolean useKeyPrefix)
Constructor Detail
Redis
public Redis()
Method Detail
getTimeToLive
public Duration getTimeToLive()
setTimeToLive
public void setTimeToLive(Duration timeToLive)
isCacheNullValues
public boolean isCacheNullValues()
setCacheNullValues
public void setCacheNullValues(boolean cacheNullValues)
getKeyPrefix
public String getKeyPrefix()
setKeyPrefix
public void setKeyPrefix(String keyPrefix)
isUseKeyPrefix
public boolean isUseKeyPrefix()
setUseKeyPrefix
public void setUseKeyPrefix(boolean useKeyPrefix)