java - EhCache Write-Behind: Removing objects after writing to Db -


i'm using ehcache write-behind in order optimize writing db (through hibernate). question how configure ehcache remove cache element written db? tried several combinations of ttl , time idle couldnt make work.

i need because found out if element x putwithwriter , written db, if cache.get() in case x in cache x unmanaged entity. know can set ehcache transnational comes cost, while in cases dont need it. reason i'm new ehcache , configuration , right hope fast solution.

maybe can remove them cache.remove() in writer, i'd have explicitly lock , has costs right?

so can configure ehcache remove elements cache right when writes them db?

thanks!


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -