Hi,I've been trying to find out more details/internals about IMap's .containsKey() and how it relates to the .get() function.How do they compare in terms of runtime performance?
Is an optimistic .get() followed by an null-check significantly slower compared to a call to .containsKey()?
Why am I asking this: I'd like to keep my hazelcast interactions async - there is .getAsync() but no .containsKeyAsync() equivalent ..
--Cheers, Mathias
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/8eae2817-5d22-44c1-82f9-dd27f2ddf7f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, also you can use this hack instead of method containsKeyAsync : https://gist.github.com/ahmetmircik/7226e9d6da930054226d
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/CAGuAWdD7MmQ%3D34rj_W%3DwQyUY1jfY0iTkDTE2ve4xpHM0O0POgw%40mail.gmail.com.
<dependencies>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-all</artifactId>
<version>3.6-EA</version>
</dependency>
</dependencies>
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/abcf219a-cee2-4e91-af5e-3776b713f5ca%40googlegroups.com.