Class HvlAuthzUserRegistrationCacheRedisServiceImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.cache.redis.HvlAuthzUserRegistrationCacheRedisServiceImpl
- All Implemented Interfaces:
HvlAuthzUserRegistrationCacheService
@Profile("redis")
@Service
public class HvlAuthzUserRegistrationCacheRedisServiceImpl
extends Object
implements HvlAuthzUserRegistrationCacheService
The class which implements
HvlAuthzUserRegistrationCacheService
for Redis.-
Field Summary
Fields inherited from interface tr.com.havelsan.javarch.oauth.authz.starter.cache.HvlAuthzUserRegistrationCacheService
REGISTRATION_CACHE_NAME, REGISTRATION_KEY_SPACE
-
Constructor Summary
ConstructorDescriptionHvlAuthzUserRegistrationCacheRedisServiceImpl
(org.springframework.data.redis.core.ReactiveRedisTemplate<String, String> reactiveRedisTemplate, tr.com.havelsan.javarch.cache.redis.configuration.properties.HvlRedisCacheManagerProperties redisCacheManagerProperties) Instantiates a new HvlAuthzUserRegistrationCacheServiceImpl. -
Method Summary
-
Constructor Details
-
HvlAuthzUserRegistrationCacheRedisServiceImpl
public HvlAuthzUserRegistrationCacheRedisServiceImpl(org.springframework.data.redis.core.ReactiveRedisTemplate<String, String> reactiveRedisTemplate, tr.com.havelsan.javarch.cache.redis.configuration.properties.HvlRedisCacheManagerProperties redisCacheManagerProperties) Instantiates a new HvlAuthzUserRegistrationCacheServiceImpl.- Parameters:
reactiveRedisTemplate
- the reactive redis templateredisCacheManagerProperties
- the redis cache manager properties
-
-
Method Details
-
set
public void set(@NotBlank @NotBlank String cacheKey, @NotBlank @NotBlank String email, @NotNull @NotNull Duration ttl) Set cache- Specified by:
set
in interfaceHvlAuthzUserRegistrationCacheService
- Parameters:
cacheKey
- the cache key
-
get
Get cache- Specified by:
get
in interfaceHvlAuthzUserRegistrationCacheService
- Parameters:
cacheKey
- the cache key
-
delete
Delete cache.- Specified by:
delete
in interfaceHvlAuthzUserRegistrationCacheService
-