Re: Near Cache Support For Thin Clients

2020-05-22 Thread Marty Jones
Has there been a request for event listeners for the thin clients? I am happy to roll my own implementation of the nearcache if I can get the events of when cache items within the cluster are added, modified, or deleted. On Thu, May 21, 2020 at 2:29 PM Marty Jones wrote: > Honestly near ca

Re: Near Cache Support For Thin Clients

2020-05-21 Thread Marty Jones
the explanation. >>> Yes, this is a good feature, and I've had this in mind for some time. >>> >>> Ticket filed: https://issues.apache.org/jira/browse/IGNITE-13037 >>> There are no immediate plans, but I think there is a possibility to >>> achieve this by the end of

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

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?

Re: Can we set TTL (expiry time) of a key-value from thin client?

2020-05-19 Thread Marty Jones
ase elaborate? > We are talking about protocol-level details in this thread. > Your code for .NET Thin Client seems to be fine, does it work as expected? > > On Tue, May 19, 2020 at 4:39 PM Marty Jones wrote: > >> I am not seeing that option in the ASP.NET thin client. Thi

Re: Can we set TTL (expiry time) of a key-value from thin client?

2020-05-19 Thread Marty Jones
I am not seeing that option in the ASP.NET thin client. This is how I accomplished setting an expiration policy: ICacheClient cache = igniteClient.GetCache("testCache"); cache.WithExpiryPolicy(new ExpiryPolicy(TimeSpan.FromSeconds(15), null, null)) .Put("test1", new CacheItemEntry() {

Re: Near Cache Support For Thin Clients

2020-05-19 Thread Marty Jones
The use case is having a local cache that stores most widely used cache items in memory on server instead of having the network expense of pulling them down every time they are requested. The main thing is the near cache has to support removing cache items that have expired on the server. The