Class LoginCacheOperation

java.lang.Object
es.kukenan.smartfi.microservice.smartficore.cache.LoginCacheOperation

@Component @RefreshScope public class LoginCacheOperation extends Object
Operation over cache.
  • Field Details

    • loginName

      @Value("${cache.login.login-map}") private String loginName
      map cache.login cache established.
    • timeToLive

      @Value("${cache.login.time-to-live}") private Long timeToLive
      time-to-live established.
    • hazelcastInstance

      @Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstance
      HazelcastInstance hazelcastInstance.
  • Constructor Details

    • LoginCacheOperation

      public LoginCacheOperation()
  • Method Details

    • cacheOperations

      public void cacheOperations(List<CacheOperationEnum> operations, String id, Object obj)
      Cache login.
      Parameters:
      operations - to be executed
      id - key of the registry
      obj - to be saved
    • getAllInformationByUser

      public LoginCache getAllInformationByUser(String id)
      getting all Cache object.
      Parameters:
      id - key of the registry
      Returns:
      LoginCache
    • insertUserTokenCache

      public LoginCache insertUserTokenCache(String id, String token)
      getting all Cache object.
      Parameters:
      id - key of the registry
      token - value of the registry
      Returns:
      LoginCache