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 TypeMethodDescriptionint
getPort()
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:IRedisSettings
Sets the time to live for the records in the table- Specified by:
setRecordTtl
in interfaceIRedisSettings
- Parameters:
ttl
- The time to live for the records in the table- Returns:
- this instance, for chaining
-
getRecordTtl
- Specified by:
getRecordTtl
in interfaceIRedisSettings
- Returns:
- the time to live for the records in the table
-
getHostname
- Specified by:
getHostname
in interfaceIRedisSettings
- Returns:
- A list of contact points (hostname:port) to contact to.
-
setHostname
- Specified by:
setHostname
in interfaceIRedisSettings
-
getPort
public int getPort()- Specified by:
getPort
in interfaceIRedisSettings
-
setPort
- Specified by:
setPort
in interfaceIRedisSettings
-