Interface HvlAuthVerificationCacheService

All Known Implementing Classes:
HvlAuthVerificationRedisCacheServiceImpl

@Validated public interface HvlAuthVerificationCacheService
This service provides operational methods.
  • Field Details

    • VERIFICATION_CACHE_NAME

      static final String VERIFICATION_CACHE_NAME
      The constant VERIFICATION_CACHE_NAME.
      See Also:
    • VERIFICATION_KEY_SPACE

      static final String 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 key
      model - the model
      ttl - the ttl
    • get

      HvlAuthVerificationCodeModel get(@NotBlank @NotBlank String key)
      Get cache
      Parameters:
      key - the cache key
      Returns:
      the hvl auth verification code model
    • delete

      Boolean delete(@NotBlank @NotBlank String key)
      Delete cache.
      Parameters:
      key - the key
      Returns:
      the boolean