Skip to content

Commit

Permalink
chore[comment]: cache the sid after load balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Jan 18, 2024
1 parent 6dc976e commit fe7a0ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CachedConsistentHashLoadBalancer extends AbstractConsumerLoadBalanc
private static final long MAX_CACHE_SIZE = 10_0000;

/**
* cache the sid after load balancer,key:[protocolModuleId + argument] -> value:[sid]
* cache the sid after load balancer,key:[argument + protocolModuleId] -> value:[sid]
*/
private Cache<Long, Long> cache = Caffeine.newBuilder()
.expireAfterAccess(EXPIRED_ACCESS_DURATION, TimeUnit.MILLISECONDS)
Expand Down

0 comments on commit fe7a0ce

Please sign in to comment.