public void onPMessage(String pattern, String channel, String message) {
log.debugf("channel=%s, msg=%s", channel, message);
if (message.startsWith(LCacheManager.me.id))
return;
String cacheName = channel.substring(LCacheManager.PREFIX.length());
LCache cache = LCacheManager.me.caches.get(cacheName);
if (cache != null && cache.list.size() > 1)
((Cache) cache.list.get(0)).remove(message.substring(LCacheManager.me.id.length() + 1));
}
这个里面清除一级缓存的逻辑是!message.startsWith(LCacheManager.me.id)这个是啥意思 想了半天没弄明白