mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-07-04 03:15:19 +00:00
chore[comment]: cache the sid after load balancer
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user