This content has been marked as final.
Show 3 replies
-
1. Re: is cache.evict() asynchronous?
galder.zamarreno May 4, 2012 3:46 AM (in response to venkataratnamteki)Do you have a cache loader configured? Otherwise, what you're saying should work. Mind attaching a test case?
You can easily build a test case with our maven archetypes.
-
2. Re: is cache.evict() asynchronous?
venkataratnamteki May 4, 2012 4:05 AM (in response to galder.zamarreno)I have a cache loader configured.
ConfigurationBuilder builder = new ConfigurationBuilder();
//...Some options...such as TTL, Idle time..etc
builder.loaders().addFileCacheStore().location("myfilestore").purgeSynchronously(true).purgeOnStartup(false).async();
-
3. Re: is cache.evict() asynchronous?
galder.zamarreno May 11, 2012 6:48 AM (in response to venkataratnamteki)Evict only removes from memory,not the cache store, so what you're seeing is normal. Use remove() if you want complete removal.