You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response maps use the HashMap implementation to transport map data structures. A HashMap has a random order and does not preserve the Redis ordering. Switch therefore to a LinkedHashMap.
Motivation: A LinkedHashMap preserves the order of elements whereas a HashMap maintains a "random order". The order of Redis hash values depends on the order of insertion. Users might want to preserve that order and that's the reason why to use a LinkedHashMap.
Motivation: A LinkedHashMap preserves the order of elements whereas a HashMap maintains a "random order". The order of Redis hash values depends on the order of insertion. Users might want to preserve that order and that's the reason why to use a LinkedHashMap.
The response maps use the
HashMap
implementation to transport map data structures. AHashMap
has a random order and does not preserve the Redis ordering. Switch therefore to aLinkedHashMap
.Motivation: A LinkedHashMap preserves the order of elements whereas a HashMap maintains a "random order". The order of Redis hash values depends on the order of insertion. Users might want to preserve that order and that's the reason why to use a LinkedHashMap.
References:
The text was updated successfully, but these errors were encountered: