DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
String user = RequestContext.get().getUserId();
cache.put(user+"purimportKey","wqyp_purimportdata");
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
String userId = RequestContext.get().getUserId();
String importKey = cache.get(userId + "importKey");
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache("customRegion");
String userId = RequestContext.get().getUserId();
if (cache.contains(userId + "salimportKey")){
cache.remove(userId + "salimportKey");
}
推荐阅读