public void reload ( List < RedisClusterNode > partitions ) { LettuceAssert . noNullElements ( partitions , "Partitions must not contain null elements" ) ; synchronized ( this . partitions ) { this . partitions . clear ( ) ; this . partitions . addAll ( partitions ) ; updateCache ( ) ; } }
Update partitions and rebuild slot cache .