Class HvlAuthVerificationRedisCacheServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.auth.starter.cache.redis.HvlAuthVerificationRedisCacheServiceImpl
- All Implemented Interfaces:
HvlAuthVerificationCacheService
@Profile("redis")
@Service
public class HvlAuthVerificationRedisCacheServiceImpl
extends Object
implements HvlAuthVerificationCacheService
The class which implements
HvlAuthVerificationCacheService
for Redis.-
Field Summary
Fields inherited from interface tr.com.havelsan.javarch.oauth.auth.starter.cache.HvlAuthVerificationCacheService
VERIFICATION_CACHE_NAME, VERIFICATION_KEY_SPACE
-
Constructor Summary
ConstructorDescriptionHvlAuthVerificationRedisCacheServiceImpl
(org.springframework.data.redis.core.ReactiveRedisTemplate<String, HvlAuthVerificationCodeModel> reactiveRedisTemplate, tr.com.havelsan.javarch.cache.redis.configuration.properties.HvlRedisCacheManagerProperties redisCacheManagerProperties) Instantiates a new HvlAuthVerificationCacheService. -
Method Summary
Modifier and TypeMethodDescriptionDelete cache.Get cachevoid
set
(@NotBlank String key, @NotNull HvlAuthVerificationCodeModel model, @NotNull Duration ttl) Set cache
-
Constructor Details
-
HvlAuthVerificationRedisCacheServiceImpl
public HvlAuthVerificationRedisCacheServiceImpl(org.springframework.data.redis.core.ReactiveRedisTemplate<String, HvlAuthVerificationCodeModel> reactiveRedisTemplate, tr.com.havelsan.javarch.cache.redis.configuration.properties.HvlRedisCacheManagerProperties redisCacheManagerProperties) Instantiates a new HvlAuthVerificationCacheService.- Parameters:
reactiveRedisTemplate
- the reactive redis templateredisCacheManagerProperties
- the redis cache manager properties
-
-
Method Details
-
set
public void set(@NotBlank @NotBlank String key, @NotNull @NotNull HvlAuthVerificationCodeModel model, @NotNull @NotNull Duration ttl) Set cache- Specified by:
set
in interfaceHvlAuthVerificationCacheService
- Parameters:
key
- the cache key
-
get
Get cache- Specified by:
get
in interfaceHvlAuthVerificationCacheService
- Parameters:
key
- the cache key
-
delete
Delete cache.- Specified by:
delete
in interfaceHvlAuthVerificationCacheService
-