What Is A 'MemoryStoreHashMap"?

Noticed this while doing research in the documentation.

What’s the difference between this and a MemoryStoreSortedMap? Doesn’t seem to be any documentation on this yet.

MemoryStoreSortedMap is used to store key-value pairs where the keys can be sorted. This allows for operations like retrieving items within a sorted range of keys. It provides methods for setting, updating, and getting values along with their sort keys.

Whereas, MemoryStoreHashMap is more of a standard hash map that also stores key-value pairs but without the sorting capability. It allows for basic operations like setting, updating, getting, and removing values associated with keys.

1 Like

If sorting is not required, you should use MemoryStoreHashMap for more performance

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.