首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

oscache 与 ehcache的对照

2012-08-31 
oscache 与 ehcache的对比?一.ehcache主要是对数据库访问的缓存,相同的查询语句只需查询一次数据库,? 从而

oscache 与 ehcache的对比

?

一.ehcache主要是对数据库访问的缓存,相同的查询语句只需查询一次数据库,

? 从而提高了查询的速度,使用spring的AOP可以很容易实现这一功能.

??http://ehcache.sourceforge.net/

? ehcache.xml

? ?? <cache name="sampleCache1"

   <filter>       <filter-name>CacheFilter</filter-name>   <filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>     <init-param>                   <param-name>time</param-name>            <param-value>60</param-value>        </init-param>         <init-param>                                      <param-name>scope</param-name>          <param-value>session</param-value>       </init-param>   </filter><filter-mapping>       <filter-name>CacheFilter</filter-name>         <url-pattern>/*.jsp</url-pattern></filter-mapping>    

?http://www.opensymphony.com/oscache/download.html下载Oscache的最新版本

?java进阶网?http://www.javady.com/index.php/category/big_data

?

热点排行