Spring框架从version3.1开始支持cache,并在version4.1版本中对cache功能进行了增强. spring cache 的关键原理就是 spring AOP,通过 spring AOP,其实现了在方法调用前.调用后获取方法的入参和返回值,进而实现了缓存的逻辑.关于Spring Cache原理的详细介绍,参见http://blog.csdn.net/guugle2010/article/details/40115675 1.采用Spring的默认开箱即用的cache(Out…
OSCache的使用: 一,环境的搭建: 1,把oscache.jar file放在 /WEB-INF/lib 目录下(Put the oscache.jar file in the /WEB-INF/lib directory) 2,如果commons-logging.jar文件不存在,也要把它放进/WEB-INF/lib 目录下 3,把/etc/oscache.properties放进类路径下 注意:Remember to escape any \ characters in Windows…