Class SessionCacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.cache.SessionCacheOperation
Operation over cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheOperations(List<SessionCacheOperationEnum> operations, String uuid, Object obj) Cache operations.voiddeleteUserRecordInCache(String userId) Delete user record in cache by id.es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCachegetting all Cache object.
-
Field Details
-
uuidSession
map uuid-session cache established. -
timeToLive
ttl time-to-live established. -
hazelcastInstance
@Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstanceHazelcastInstance hazelcastInstance.
-
-
Constructor Details
-
SessionCacheOperation
public SessionCacheOperation()
-
-
Method Details
-
cacheOperations
Cache operations.- Parameters:
operations- to be executeduuid- key of the registryobj- 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
Delete user record in cache by id.- Parameters:
userId- user id.
-