Class HvlAuthEndpointRedisCachesServiceImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.auth.starter.cache.redis.HvlAuthEndpointRedisCachesServiceImpl
All Implemented Interfaces:
HvlAuthEndpointCachesService

@Profile("redis") @Service public class HvlAuthEndpointRedisCachesServiceImpl extends Object implements HvlAuthEndpointCachesService
The class which implements HvlAuthEndpointCachesService for Redis.
  • Constructor Details

    • HvlAuthEndpointRedisCachesServiceImpl

      public HvlAuthEndpointRedisCachesServiceImpl(org.springframework.cache.CacheManager cacheManager, tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<HvlSessionDataRedisUserDocument> sessionSupportService)
      Instantiates a new HvlAuthEndpointRedisCachesService.
      Parameters:
      cacheManager - the cache manager
      sessionSupportService - the session support service
  • Method Details

    • clear

      public void clear(@NotBlank @NotBlank String cache) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Clears cache.
      Specified by:
      clear in interface HvlAuthEndpointCachesService
      Parameters:
      cache - the cache
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the exception
    • clearAll

      public void clearAll() throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Clears all cache.
      Specified by:
      clearAll in interface HvlAuthEndpointCachesService
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the exception