Class RedisClientBuildTimeConfig
- java.lang.Object
-
- io.quarkus.redis.client.deployment.RedisClientBuildTimeConfig
-
public class RedisClientBuildTimeConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanflushBeforeLoadWhen usingredisLoadScript, indicates if the Redis database must be flushed (erased) before importing.booleanloadOnlyIfEmptyWhen usingredisLoadScript, indicates if the import should only happen if the database is empty (no keys).Optional<List<String>>loadScriptA list of files allowing to pre-load data into the Redis server.
-
Constructor Summary
Constructors Constructor Description RedisClientBuildTimeConfig()
-
-
-
Field Detail
-
loadScript
@ConfigItem(defaultValueDocumentation="import.redis in DEV, TEST ; no-file otherwise") @ConvertWith(io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<List<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
@ConfigItem(defaultValue="true") public boolean flushBeforeLoad
When usingredisLoadScript, indicates if the Redis database must be flushed (erased) before importing.
-
loadOnlyIfEmpty
@ConfigItem(defaultValue="true") public boolean loadOnlyIfEmpty
When usingredisLoadScript, indicates if the import should only happen if the database is empty (no keys).
-
-