Class RedisConfiguration

java.lang.Object
org.gcube.informationsystem.resourceregistry.redis.RedisConfiguration

public final class RedisConfiguration extends Object
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 Details

    • DEFAULT_KEY_PREFIX

      public static final String DEFAULT_KEY_PREFIX
      The default prefix of the keys stored in Redis.
      See Also:
    • HOST

      public static final String HOST
      In-use Redis host address.
    • PORT

      public static final int PORT
      In-use Redis port.
    • USERNAME

      public static final String USERNAME
      In-use Redis username, null when not configured.
    • PASSWORD

      public static final String PASSWORD
      In-use Redis password, null when not configured.
    • DB_INDEX

      public static final int DB_INDEX
      In-use Redis database index.
    • KEY_PREFIX

      public static final String KEY_PREFIX
      In-use prefix of the keys stored in Redis.