Hi Azeez,
In turing kernel, can we do $subject. We found "setExpiry" in your blog
post and following is the code we use, but we noticed it still timeouts in
15mins. Is there new API to do this or are we missing something ?
CacheManager manager =
Caching.getCacheManagerFactory().getCacheManager("inMemoryEventCacheManager").getCache("inMemoryEventCache").getCacheManager();
if(inMemoryEventCacheInit) {
return
Caching.getCacheManagerFactory().getCacheManager("inMemoryEventCacheManager").getCache("inMemoryEventCache");
} else {
inMemoryEventCacheInit = true;
return manager.<Integer,
SharedMemoryMatchingManager>createCacheBuilder("inMemoryEventCacheManager").setExpiry(CacheConfiguration.ExpiryType.MODIFIED,
new
CacheConfiguration.Duration(TimeUnit.DAYS,1000)).setStoreByValue(false).build();
}
--
Thanks
/subash
*Subash Chaturanga*
Senior Software Engineer & Lead WSO2 Governance Registry
Platform TG; WSO2 Inc. http://wso2.com
Contact:
email: [email protected]
blog: http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev