Nikita Koksharov
Nikita Koksharov
@manikantag you're right it's impossible to use `expire` method on empty Redis data structures like map. This limitation should be reflected in javadocs. It would be great if you help...
@manikantag Let's consider example you provided in https://github.com/redisson/redisson/issues/220#issuecomment-322108454 ```java public void onMessage(String channel, String msg) { System.out.println(channel); System.out.println(msg); } ``` msg - is expired key itself. You can get an...
@manikantag Oh, sorry, I had a hard day. You're right. It's not possible since object is not available anymore.
@manikantag You could use RMapCache object and add listener on entry expiration like this: ```java RMapCache.addListener(new EntryExpiredListener() { void onExpired(EntryEvent event) { K expiredKey = event.getKey(); V expiredValue = event.getValue();...
`addListener` and `removeListener` methods added to `RObject`, `RObjectAsync`, `RObjectReactive`, `RObjectRx` objects. You can catch Deleted and Expired keyspace events published by Redis with `ObjectDeletedListener` and `ObjectExpiredListener`.
you need to define port as well
> I adjusted the setDnsMonitoringInterval to -1, but I didn't see any noticeable outliers in the failover tests All should work fine if cluster nodes info returns IPs only. >...
@ant76050391 Thanks for insight! The only way to reduce dns requests is to increase setScanInterval() parameter. Since cluster node hostnames should be resolved each scan for IP change checking.
Thanks for insight! I suggest to implement DnsAddressResolverGroupFactory and specify ttl you need (in seconds). ```java public class DnsAddressResolverGroupFactory implements AddressResolverGroupFactory { @Override public DnsAddressResolverGroup create(Class
@ant76050391 Can you confirm that ttl and negativeTtl settings resolve the issue?