Class RedisRuntimeHints
java.lang.Object
org.springframework.data.redis.aot.RedisRuntimeHints
- All Implemented Interfaces:
org.springframework.aot.hint.RuntimeHintsRegistrar
public class RedisRuntimeHints
extends Object
implements org.springframework.aot.hint.RuntimeHintsRegistrar
RuntimeHintsRegistrar
for Redis operations and repository support.- Since:
- 3.0
- Author:
- Christoph Strobl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.aot.hint.RuntimeHints
redisHints
(Consumer<org.springframework.aot.hint.RuntimeHints> config) Get aRuntimeHints
instance containing the ones for Redis.void
registerHints
(org.springframework.aot.hint.RuntimeHints hints, ClassLoader classLoader)
-
Constructor Details
-
RedisRuntimeHints
public RedisRuntimeHints()
-
-
Method Details
-
redisHints
public static org.springframework.aot.hint.RuntimeHints redisHints(Consumer<org.springframework.aot.hint.RuntimeHints> config) Get aRuntimeHints
instance containing the ones for Redis.- Parameters:
config
- callback to provide additional custom hints.- Returns:
- new instance of
RuntimeHints
.
-
registerHints
public void registerHints(org.springframework.aot.hint.RuntimeHints hints, @Nullable ClassLoader classLoader) - Specified by:
registerHints
in interfaceorg.springframework.aot.hint.RuntimeHintsRegistrar
-