Re: Disable caching for a specif map

78 views
Skip to first unread message

Enes Akar

unread,
Jul 29, 2015, 8:03:04 AM7/29/15
to Hazelcast
This is not a common scenario so hazelcast does not have this.

But you can easily wrap hazelcast map and implement a disable functionality.

On Tue, Jul 28, 2015 at 7:16 PM teivah <tei...@gmail.com> wrote:
Hello all,

I would like to know if there is such parameter in Hazelcast to disable temporary the cache mechanism for a specific map.

Indeed, my program is basically doing the following steps:

HazelcastInstance instance = ...; //retrieve Hazelcast instance
IMap<> map = instance.getMap();
Object cache = map.get("someKey");

For performance testing, I would like to disable a specific map. So I would expect a mechanism which would still return a map with the getMap(), but the get() would always return a null.

At the moment, my only option was to set the time-to-live-seconds to the lower possible value (1) but it is not really the same procedure as if I was able to disable the cache for this map..

Is there any better options?

Thanks for your help
Rgds

--
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/cd026c40-f738-4098-917f-9a3bf7a1e476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

teiva.h...@gmail.com

unread,
Jul 29, 2015, 10:19:01 AM7/29/15
to Hazelcast, en...@hazelcast.com
Okay fine. Thanks for your reply anyway.

Ahmet Mircik

unread,
Jul 29, 2015, 10:51:29 AM7/29/15
to haze...@googlegroups.com, Enes Akar
Reply all
Reply to author
Forward
0 new messages