Skip to content

Commit

Permalink
发布1.0.3版本
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Apr 7, 2019
1 parent e008e64 commit e60a606
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ buildscript {
···
dependencies {
···
classpath 'com.github.xuexiangjys.XAOP:xaop-plugin:1.0.2'
classpath 'com.github.xuexiangjys.XAOP:xaop-plugin:1.0.3'
}
}
```
Expand All @@ -70,9 +70,9 @@ apply plugin: 'com.xuexiang.xaop' //引用xaop插件
dependencies {
···
//添加依赖
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.2'
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.3'
//如果你升级到androidx,请使用下面依赖
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:x1.0.2'
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:x1.0.3'
}
```
Expand Down Expand Up @@ -134,7 +134,7 @@ buildscript {
···
dependencies {
···
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.0'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4'
}
}
```
Expand Down Expand Up @@ -232,7 +232,7 @@ private String hello(String name, String cardId) {

### 3.6、内存缓存切片使用

1.使用`@MemoryCache`标注需要内存缓存的方法。可设置缓存的key,不设置的话默认key为`方法名+参数1+参数2+...`
1.使用`@MemoryCache`标注需要内存缓存的方法。可设置缓存的key,不设置的话默认key为`方法名(参数1名=参数1值|参数2名=参数2值|...)`,当然你也可以修改key的自动生成规则,你只需要调用`XAOP.setICacheKeyCreator`即可

2.标注的方法一定要有返回值,否则内存缓存切片将不起作用。

Expand All @@ -250,7 +250,7 @@ private String hello(String name, String cardId) {

### 3.7、磁盘缓存切片使用

1.使用`@DiskCache`标注需要磁盘缓存的方法。可设置缓存的key,不设置的话默认key为`方法名+参数1+参数2+...`
1.使用`@DiskCache`标注需要磁盘缓存的方法。可设置缓存的key,不设置的话默认key为`方法名(参数1名=参数1值|参数2名=参数2值|...)`,当然你也可以修改key的自动生成规则,你只需要调用`XAOP.setICacheKeyCreator`即可

2.可设置磁盘缓存的有效期,单位:s。不设置的话默认永久有效。

Expand Down Expand Up @@ -330,7 +330,7 @@ private String hello(String name, String cardId) {

![](https://github.com/xuexiangjys/XPage/blob/master/img/qq_group.jpg)

[xaopsvg]: https://img.shields.io/badge/XAOP-v1.0.2-brightgreen.svg
[xaopsvg]: https://img.shields.io/badge/XAOP-v1.0.3-brightgreen.svg
[xaop]: https://github.com/xuexiangjys/XAOP
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
[api]: https://android-arsenal.com/api?level=14
8 changes: 5 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ buildscript {
···
dependencies {
···
classpath 'com.github.xuexiangjys.XAOP:xaop-plugin:1.0.2'
classpath 'com.github.xuexiangjys.XAOP:xaop-plugin:1.0.3'
}
}
```
Expand All @@ -58,7 +58,9 @@ apply plugin: 'com.xuexiang.xaop' //引用xaop插件
dependencies {
···
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.2' //添加依赖
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.3' //添加依赖
//如果你升级到androidx,请使用下面依赖
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:x1.0.3'
}
```
Expand Down Expand Up @@ -103,7 +105,7 @@ XAOP.setInterceptor(new Interceptor() {

[![](https://img.shields.io/badge/点击一键加入QQ群-602082750-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=9922861ef85c19f1575aecea0e8680f60d9386080a97ed310c971ae074998887)

[xaopsvg]: https://img.shields.io/badge/XAOP-v1.0.2-brightgreen.svg
[xaopsvg]: https://img.shields.io/badge/XAOP-v1.0.3-brightgreen.svg
[xaop]: https://github.com/xuexiangjys/XAOP
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
[api]: https://android-arsenal.com/api?level=14

0 comments on commit e60a606

Please sign in to comment.