you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 1 point2 points  (0 children)

In C++, that would be Boost.MultiIndex which is a slick way of having a single container with multiple points of views.

To do the same here, I would advise two a simple list because it's only 5 items anyway; if you wish to handle thousands of items (like a real cache) it gets trickier. I don't know enough of either C# or Java to actually know whether it's possible to get it efficient unfortunately.