Class SessionCacheOperation

java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.cache.SessionCacheOperation

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

    • uuidSession

      @Value("${cache.uuid-session-map}") private String uuidSession
      map uuid-session cache established.
    • timeToLive

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

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

    • SessionCacheOperation

      public SessionCacheOperation()
  • Method Details

    • cacheOperations

      public void cacheOperations(List<SessionCacheOperationEnum> operations, String uuid, Object obj)
      Cache operations.
      Parameters:
      operations - to be executed
      uuid - key of the registry
      obj - to be saved
    • getAllInformationByUuid

      public es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache getAllInformationByUuid(String uuid)
      getting all Cache object.
      Parameters:
      uuid - key of the registry
      Returns:
      uuidCache object
    • deleteUserRecordInCache

      public void deleteUserRecordInCache(String userId)
      Delete user record in cache by id.
      Parameters:
      userId - user id.