ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AndreyVel <andrey4...@gmail.com>
Subject Re: How to get the configuration of a given cache in Apache Ignite?
Date Fri, 24 Jun 2016 19:25:39 GMT
Sorry, you can get ExpiryPolicy without hacking

            Factory<ExpiryPolicy> factory  =
cacheCfg.getExpiryPolicyFactory();
            ExpiryPolicy policy = factory.create();
            long timeToLive =
policy.getExpiryForCreation().getDurationAmount();




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-get-the-configuration-of-a-given-cache-in-Apache-Ignite-tp5890p5892.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message