Browse Source

分布式本地缓存

master
陈裕财 3 years ago
parent
commit
98b861220b
  1. 8
      xm-core/src/main/java/com/xm/core/service/cache/sub/CacheMessageListener.java

8
xm-core/src/main/java/com/xm/core/service/cache/sub/CacheMessageListener.java

@ -56,13 +56,13 @@ public class CacheMessageListener implements MessageListener {
return; return;
} }
String channelName=stringSerializer.deserialize(pattern); String channelName=stringSerializer.deserialize(pattern);
if(channelName.startsWith("XM_PRODUCT")) {
if(channelName.startsWith("XM_PRODUCT_CACHE")) {
xmProductCacheService.clearLocalCache(msg); xmProductCacheService.clearLocalCache(msg);
}else if(channelName.startsWith("XM_PROJECT")) {
}else if(channelName.startsWith("XM_PROJECT_CACHE")) {
xmProjectCacheService.clearLocalCache(msg); xmProjectCacheService.clearLocalCache(msg);
}else if(channelName.startsWith("XM_GROUP_PRJ")) {
}else if(channelName.startsWith("XM_GROUP_PRJ_CACHE")) {
xmGroupCacheService.clearLocalPrjectCache(msg); xmGroupCacheService.clearLocalPrjectCache(msg);
}else if(channelName.startsWith("XM_GROUP_PRD")) {
}else if(channelName.startsWith("XM_GROUP_PRD_CACHE")) {
xmGroupCacheService.clearLocalProductCache(msg); xmGroupCacheService.clearLocalProductCache(msg);
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save