Package org.wicketstuff.datastores.redis
Class RedisSettings
java.lang.Object
org.wicketstuff.datastores.redis.RedisSettings
- All Implemented Interfaces:
IRedisSettings
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()setHostname(String hostname) setPort(int port) setRecordTtl(Duration ttl) Sets the time to live for the records in the table
-
Constructor Details
-
RedisSettings
public RedisSettings()
-
-
Method Details
-
setRecordTtl
Description copied from interface:IRedisSettingsSets the time to live for the records in the table- Specified by:
setRecordTtlin interfaceIRedisSettings- Parameters:
ttl- The time to live for the records in the table- Returns:
- this instance, for chaining
-
getRecordTtl
- Specified by:
getRecordTtlin interfaceIRedisSettings- Returns:
- the time to live for the records in the table
-
getHostname
- Specified by:
getHostnamein interfaceIRedisSettings- Returns:
- A list of contact points (hostname:port) to contact to.
-
setHostname
- Specified by:
setHostnamein interfaceIRedisSettings
-
getPort
public int getPort()- Specified by:
getPortin interfaceIRedisSettings
-
setPort
- Specified by:
setPortin interfaceIRedisSettings
-