Class RedisConfiguration
java.lang.Object
org.gcube.informationsystem.resourceregistry.redis.RedisConfiguration
The Redis settings of the service: the
redis section of "service.yaml",
read once the first time this class is loaded. Every key is optional and falls back to its default.
The settings live in their own class, apart from the database ones, so that connecting to Redis never waits for the initialization of the database: on a new database that initialization writes the Types, and every Type write empties the Redis type cache.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIn-use Redis database index.static final StringThe default prefix of the keys stored in Redis.static final StringIn-use Redis host address.static final StringIn-use prefix of the keys stored in Redis.static final StringIn-use Redis password,nullwhen not configured.static final intIn-use Redis port.static final StringIn-use Redis username,nullwhen not configured. -
Method Summary
-
Field Details
-
DEFAULT_KEY_PREFIX
The default prefix of the keys stored in Redis.- See Also:
-
HOST
In-use Redis host address. -
PORT
public static final int PORTIn-use Redis port. -
USERNAME
In-use Redis username,nullwhen not configured. -
PASSWORD
In-use Redis password,nullwhen not configured. -
DB_INDEX
public static final int DB_INDEXIn-use Redis database index. -
KEY_PREFIX
In-use prefix of the keys stored in Redis.
-