Caching is a powerful technique, and Hibernate provides a powerful, flexible, and unobtrusive way of implementing it. Even the default configuration can provide substantial performance improvements in many simple cases. However, like any powerful tool, Hibernate needs some thought and fine-tuning to obtain optimal results, and caching—like any other optimization technique—should be implemented using an incremental, test-driven approach. When done correctly, a small amount of well executed cachin阅读全文>
发表于 @ 2006年03月27日 23:04:00|编辑
class缓存(id,object)
query缓存(querySentence,ids)-->根据id利用class缓存,找到object
collection缓存
不要想当然的以为缓存一定能提高性能,仅仅在你能够驾驭它并且条件合适的情况下才是这样的。阅读全文>
发表于 @ 2006年03月27日 22:24:00|编辑
spring的aop实现ehcache二级缓存阅读全文>
发表于 @ 2006年03月27日 21:41:00|编辑