Interface HvlAuthVerificationCacheService
- All Known Implementing Classes:
HvlAuthVerificationRedisCacheServiceImpl
@Validated
public interface HvlAuthVerificationCacheService
This service provides operational methods.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionDelete cache.Get cachevoid
set
(@NotBlank String key, @NotNull HvlAuthVerificationCodeModel model, @NotNull Duration ttl) Set cache
-
Field Details
-
VERIFICATION_CACHE_NAME
The constant VERIFICATION_CACHE_NAME.- See Also:
-
VERIFICATION_KEY_SPACE
The constant VERIFICATION_KEY_SPACE.- See Also:
-
-
Method Details
-
set
void set(@NotBlank @NotBlank String key, @NotNull @NotNull HvlAuthVerificationCodeModel model, @NotNull @NotNull Duration ttl) Set cache- Parameters:
key
- the cache keymodel
- the modelttl
- the ttl
-
get
Get cache- Parameters:
key
- the cache key- Returns:
- the hvl auth verification code model
-
delete
Delete cache.- Parameters:
key
- the key- Returns:
- the boolean
-