chore[comment]: cache the sid after load balancer

This commit is contained in:
godotg
2024-01-18 10:44:32 +08:00
parent 6dc976e86b
commit fe7a0cef3a
@@ -22,7 +22,7 @@ public class CachedConsistentHashLoadBalancer extends AbstractConsumerLoadBalanc
private static final long MAX_CACHE_SIZE = 10_0000;
/**
* cache the sid after load balancerkey:[protocolModuleId + argument] -> value:[sid]
* cache the sid after load balancerkey:[argument + protocolModuleId] -> value:[sid]
*/
private Cache<Long, Long> cache = Caffeine.newBuilder()
.expireAfterAccess(EXPIRED_ACCESS_DURATION, TimeUnit.MILLISECONDS)