Hi Firzhan,

In docs[1] they say "By default cache instances created by CacheBuilder
will not perform any type of eviction.", which means it will never expire
unless you set an expiry time.

[1]
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheBuilder.html

Thanks,
Bhathiya



On Fri, Oct 17, 2014 at 12:44 AM, Firzhan Naqash <[email protected]> wrote:

> Hi,
>
> Are there any specific way to make sure that cache doesn't get invalidated
> other than setting a longer duration in the setExpiry() method of
> CacheBuilder ?
>
>
>
> Regards,
> Firzhan
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com <http://wso2.com>*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to