Skip to content

Commit

Permalink
删除Spring 关键字
Browse files Browse the repository at this point in the history
  • Loading branch information
邱家榆 committed Aug 10, 2016
1 parent a4178d6 commit f528124
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<version>4.16</version>
<packaging>jar</packaging>
<name>AutoLoadCache</name>
<description>User Spring AOP and annotation to do with cache.</description>
<description>User AOP and annotation to do with cache.</description>
<url>https://github.com/qiujiayu/AutoLoadCache</url>
<licenses>
<license>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/jarvis/cache/annotation/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
int expire();

/**
* 动态获取缓存过期时间的Spring EL表达式
* 动态获取缓存过期时间的表达式
* @return 时间
*/
String expireExpression() default "";
Expand All @@ -34,13 +34,13 @@
int alarmTime() default 0;

/**
* 自定义缓存Key,支持Spring EL表达式
* 自定义缓存Key,支持表达式
* @return String 自定义缓存Key
*/
String key();

/**
* 设置哈希表中的字段,如果设置此项,则用哈希表进行存储,支持Spring EL表达式
* 设置哈希表中的字段,如果设置此项,则用哈希表进行存储,支持表达式
* @return String
*/
String hfield() default "";
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/jarvis/cache/annotation/ExCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
int expire();

/**
* 动态获取缓存过期时间的Spring EL表达式
* 动态获取缓存过期时间的表达式
* @return 时间
*/
String expireExpression() default "";

/**
* 自定义缓存Key,支持Spring EL表达式
* 自定义缓存Key,支持表达式
* @return String 自定义缓存Key
*/
String key();

/**
* 设置哈希表中的字段,如果设置此项,则用哈希表进行存储,支持Spring EL表达式
* 设置哈希表中的字段,如果设置此项,则用哈希表进行存储,支持表达式
* @return String
*/
String hfield() default "";
Expand All @@ -48,7 +48,7 @@
String condition() default "";

/**
* 通过SpringEL表达式获取需要缓存的数据,如果没有设置,则默认使用 #retVal
* 通过表达式获取需要缓存的数据,如果没有设置,则默认使用 #retVal
* @return 缓存对象
*/
String cacheObject() default "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public abstract class AbstractScriptParser {
public abstract <T> T getElValue(String exp, Object[] arguments, Object retVal, boolean hasRetVal, Class<T> valueType) throws Exception;

/**
* 将Spring EL 表达式转换期望的值
* @param keySpEL 生成缓存Key的Spring el表达式
* 将表达式转换期望的值
* @param keySpEL 生成缓存Key的表达式
* @param arguments 参数
* @param valueType 值类型
* @return T Value 返回值
Expand All @@ -56,7 +56,7 @@ public <T> T getElValue(String keySpEL, Object[] arguments, Class<T> valueType)

/**
* 根据请求参数和执行结果值,进行构造缓存Key
* @param keySpEL 生成缓存Key的Spring el表达式
* @param keySpEL 生成缓存Key的表达式
* @param arguments 参数
* @param retVal 结果值
* @param hasRetVal 是否有retVal
Expand Down

0 comments on commit f528124

Please sign in to comment.