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 String
getKeyPrefix()
Duration
getTimeToLive()
boolean
isCacheNullValues()
boolean
isUseKeyPrefix()
void
setCacheNullValues(boolean cacheNullValues)
void
setKeyPrefix(String keyPrefix)
void
setTimeToLive(Duration timeToLive)
void
setUseKeyPrefix(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)