Interface RedisClientBuildTimeConfig


public interface RedisClientBuildTimeConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Dev Services allows Quarkus to automatically start Redis in dev and test mode.
    boolean
    When using redisLoadScript, indicates if the Redis database must be flushed (erased) before importing.
    boolean
    When using redisLoadScript, indicates if the import should only happen if the database is empty (no keys).
    Optional<List<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>>
    A list of files allowing to pre-load data into the Redis server.
  • Method Details

    • loadScript

      @ConfigDocDefault("import.redis in DEV, TEST ; no-file otherwise") Optional<List<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>> loadScript()
      A list of files allowing to pre-load data into the Redis server. The file is formatted as follows:
      • One instruction per line
      • Each instruction is a Redis command and its parameter such as HSET foo field value
      • Parameters can be wrapped into double-quotes if they include spaces
      • Parameters can be wrapped into single-quote if they include spaces
      • Parameters including double-quotes must be wrapped into single-quotes
    • flushBeforeLoad

      @WithDefault("true") boolean flushBeforeLoad()
      When using redisLoadScript, indicates if the Redis database must be flushed (erased) before importing.
    • loadOnlyIfEmpty

      @WithDefault("true") boolean loadOnlyIfEmpty()
      When using redisLoadScript, indicates if the import should only happen if the database is empty (no keys).
    • devservices

      @ConfigDocSection(generated=true) DevServicesConfig devservices()
      Dev Services allows Quarkus to automatically start Redis in dev and test mode.