Re: Cache Item Invalidation

2020-05-20 Thread akorensh
For external events, you would need to monitor those events and expiry
manually.
Ignite does have notification capabilities int the form of events for cache
put/get and other operations
see here: https://apacheignite.readme.io/docs/events
You can use that

example:
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java
 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Cache Item Invalidation

2020-05-20 Thread Marty Jones
I understand the expiration policies but my question is about automatically
expiring a cache entry when an external event occurs such as a database
table column changes.

On Wed, May 20, 2020 at 9:49 AM akorensh  wrote:

> Hi,
>   Take a look at: https://apacheignite.readme.io/docs/expiry-policies
>Also pay attention to: https://apacheignite.readme.io/docs/evictions
> Thanks, Alex
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: Cache Item Invalidation

2020-05-20 Thread akorensh
Hi,
  Take a look at: https://apacheignite.readme.io/docs/expiry-policies
   Also pay attention to: https://apacheignite.readme.io/docs/evictions
Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Cache Item Invalidation

2020-05-19 Thread Marty Jones
How do you guys handle invalidating cache items when the underlying data is
changed within say a database you are using to create cache items with?