Invalidate specific cache partitions

classic Classic list List threaded Threaded
2 messages Options
prasadbhalerao1983 prasadbhalerao1983
Reply | Threaded
Open this post in threaded view
|

Invalidate specific cache partitions

Hi,
1)Is there any way to invalidate specific  cache partitions?

2) is there any way to invalidate the complete cache?

Thanks,
Prasad
akorensh akorensh
Reply | Threaded
Open this post in threaded view
|

RE: Invalidate specific cache partitions

 

Hi!

 

You can use IgniteCache.close() -- https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html#close--

Or IgniteCache.destroy() -- https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html#destroy--

 

To close or destroy a specific cache.

 

You can also set specific partition loss policies – if that’s your use case: https://apacheignite.readme.io/docs/partition-loss-policies

 

There is no way to invalidate specific partitions via public api.

 

Thanks, Alex

 

From: Prasad Bhalerao <[hidden email]>
Sent: Thursday, October 24, 2019 7:06 PM
To: [hidden email]
Subject: Invalidate specific cache partitions

 

Hi,

1)Is there any way to invalidate specific  cache partitions?

 

2) is there any way to invalidate the complete cache?

 

Thanks,

Prasad