`
247687009
  • 浏览: 171190 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

淘宝AOP缓存技术之taobao-pamirs-proxycache

阅读更多
一简介

在项目中使用Spring的注解方式配置实在是不爽啊,写起费劲,维护起来也麻烦。
最近看了很多淘宝的开源项目,其中有一个项目使用AOP+XML方式配置缓存,灰常方便啊。
http://code.taobao.org/p/taobao-pamirs-proxycache/
官方给出的maven地址根本不行啊坑啊。
下面是官方给出的
    <dependency>
      <groupId>com.taobao.pamirs.proxycache</groupId>
      <artifactId>taobao-pamirs-proxycache</artifactId>
      <version>2.0.3</version>
    </dependency>




简单介绍一些proxycache
1、taobao-pamirs-proxycache 的目的是产生一种和业务代码完全隔离的缓存工具.开发只需要编写业务代码.缓存的使用完全通过配置文件进行.
2、缓存可以动态的增加和去除.
3、缓存功能和存储机制分离. 可以选择不同的数据存储方式来获得数据.
4、可以通过JMX控制台查看缓存状态,命中率,读取/写入平均耗时,修改缓存数据.
5、可以设定缓存自动更新,格式为标准 quartz 格式 (请参照: http://dogstar.javaeye.com/blog/116130)
6、提供一种动态线程缓存,可以对一个流程内的数据自动缓存.

二编译安装

下载源代码,我并没有安装乌龟,直接使用eclipse检出的
http://code.taobao.org/svn/taobao-pamirs-proxycache/trunk svn地址
这里不得的不吐槽下taobao,为嘛不好好的用UTF-8非要用GBK。。好吧转吧,还好网上有批量装换的小工具。转换完了,直接把src文件夹替换吧。
进入检出的目录下把pom.xml中的
<parent>
<groupId>com.taobao</groupId>
<artifactId>parent</artifactId>
<version>1.0.2</version>
</parent>
给注释起来。
试着编译一下吧。
mvn clean install -Dmaven.test.skip=true
不成功,报错了,这是因为它依赖了一个tair-client项目,而我们中央仓库是没有的。
怎么办,又去找tair-clitn项目吧 svn地址http://code.taobao.org/svn/tair-client-java/trunk
我检的主分支2.4 直接检出成eclipse中的项目了。
先看一下编码,utf-8 不用转,yes!!
直接编译吧 mvn clean install -Dmaven.test.skip=true
OK 成功了,
下面将我们proxycace中的tair-client 改成刚刚编译和install了tair-client的版本。
在运行安装 mvn clean install -Dmaven.test.skip=true
没有错了,成功编译安装,

三加入项目中

http://code.taobao.org/p/taobao-pamirs-proxycache/wiki/index/
照着做就好了 比较方便简单。
分享到:
评论

相关推荐

    spring-aop.jar各个版本

    spring-aop-1.1.1.jar spring-aop-1.2.6.jar spring-aop-1.2.9.jar spring-aop-2.0.2.jar spring-aop-2.0.6.jar spring-aop-2.0.7.jar spring-aop-2.0.8.jar spring-aop-2.0.jar spring-aop-2.5.1.jar spring-aop-...

    spring-aop-5.0.8.RELEASE-API文档-中英对照版.zip

    赠送jar包:spring-aop-5.0.8.RELEASE.jar; 赠送原API文档:spring-aop-5.0.8.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.0.8.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.0.8.RELEASE.pom;...

    spring-aop-5.2.0.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.2.0.RELEASE.jar; 赠送原API文档:spring-aop-5.2.0.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.2.0.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.2.0.RELEASE.pom;...

    Spring5 框架 ---- AOP ---- 代码

    Spring5 框架 ---- AOP ---- 代码 Spring5 框架 ---- AOP ---- 代码 Spring5 框架 ---- AOP ---- 代码 Spring5 框架 ---- AOP ---- 代码 Spring5 框架 ---- AOP ---- 代码 Spring5 框架 ---- AOP ---- 代码 Spring5 ...

    spring-aop-5.1.3.RELEASE-API文档-中英对照版.zip

    赠送jar包:spring-aop-5.1.3.RELEASE.jar; 赠送原API文档:spring-aop-5.1.3.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.1.3.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.1.3.RELEASE.pom;...

    Spring Aop的底层实现技术 --- Jdk动态代理原理

    Spring Aop的底层实现技术 --- Jdk动态代理原理 很不错的一篇文章

    spring-aop-4.3.20.RELEASE-API文档-中英对照版.zip

    赠送jar包:spring-aop-4.3.20.RELEASE.jar 赠送原API文档:spring-aop-4.3.20.RELEASE-javadoc.jar 赠送源代码:spring-aop-4.3.20.RELEASE-sources.jar 包含翻译后的API文档:spring-aop-4.3.20.RELEASE-...

    spring-aop-4.2.2.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-4.2.2.RELEASE.jar; 赠送原API文档:spring-aop-4.2.2.RELEASE-javadoc.jar; 赠送源代码:spring-aop-4.2.2.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-4.2.2.RELEASE.pom;...

    spring-aop-5.0.10.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.0.10.RELEASE.jar; 赠送原API文档:spring-aop-5.0.10.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.0.10.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.0.10.RELEASE....

    spring-aop-4.3.20.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-4.3.20.RELEASE.jar; 赠送原API文档:spring-aop-4.3.20.RELEASE-javadoc.jar; 赠送源代码:spring-aop-4.3.20.RELEASE-sources.jar; 包含翻译后的API文档:spring-aop-4.3.20.RELEASE-...

    spring-aop-5.2.15.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.2.15.RELEASE.jar; 赠送原API文档:spring-aop-5.2.15.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.2.15.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.2.15.RELEASE....

    spring-aop-5.0.5.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.0.5.RELEASE.jar; 赠送原API文档:spring-aop-5.0.5.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.0.5.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.0.5.RELEASE.pom;...

    spring-aop-5.2.7.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.2.7.RELEASE.jar; 赠送原API文档:spring-aop-5.2.7.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.2.7.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.2.7.RELEASE.pom;...

    spring-aop-4.3.12.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-4.3.12.RELEASE.jar; 赠送原API文档:spring-aop-4.3.12.RELEASE-javadoc.jar; 赠送源代码:spring-aop-4.3.12.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-4.3.12.RELEASE....

    spring-aop-5.0.8.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.0.8.RELEASE.jar; 赠送原API文档:spring-aop-5.0.8.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.0.8.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.0.8.RELEASE.pom;...

    spring-aop-5.1.3.RELEASE-API文档-中文版.zip

    赠送jar包:spring-aop-5.1.3.RELEASE.jar; 赠送原API文档:spring-aop-5.1.3.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.1.3.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.1.3.RELEASE.pom;...

    aopalliance-repackaged-2.4.0-b34-API文档-中文版.zip

    赠送jar包:aopalliance-repackaged-2.4.0-b34.jar; 赠送原API文档:aopalliance-repackaged-2.4.0-b34-javadoc.jar; 赠送源代码:aopalliance-repackaged-2.4.0-b34-sources.jar; 赠送Maven依赖信息文件:aop...

    spring-aop-5.2.7.RELEASE-API文档-中英对照版.zip

    赠送jar包:spring-aop-5.2.7.RELEASE.jar; 赠送原API文档:spring-aop-5.2.7.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.2.7.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.2.7.RELEASE.pom;...

    spring-aop-5.2.15.RELEASE-API文档-中英对照版.zip

    赠送jar包:spring-aop-5.2.15.RELEASE.jar; 赠送原API文档:spring-aop-5.2.15.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.2.15.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.2.15.RELEASE....

    spring-aop-5.0.5.RELEASE-API文档-中英对照版.zip

    赠送jar包:spring-aop-5.0.5.RELEASE.jar; 赠送原API文档:spring-aop-5.0.5.RELEASE-javadoc.jar; 赠送源代码:spring-aop-5.0.5.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-aop-5.0.5.RELEASE.pom;...

Global site tag (gtag.js) - Google Analytics