Class LoginCacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.cache.LoginCacheOperation
Operation over cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheOperations(List<CacheOperationEnum> operations, String id, Object obj) Cache login.getting all Cache object.insertUserTokenCache(String id, String token) getting all Cache object.
-
Field Details
-
loginName
map cache.login cache established. -
timeToLive
time-to-live established. -
hazelcastInstance
@Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstanceHazelcastInstance hazelcastInstance.
-
-
Constructor Details
-
LoginCacheOperation
public LoginCacheOperation()
-
-
Method Details
-
cacheOperations
Cache login.- Parameters:
operations- to be executedid- key of the registryobj- to be saved
-
getAllInformationByUser
getting all Cache object.- Parameters:
id- key of the registry- Returns:
- LoginCache
-
insertUserTokenCache
getting all Cache object.- Parameters:
id- key of the registrytoken- value of the registry- Returns:
- LoginCache
-