Browse Source

getKey() 添加注释:当不需要缓存该 IStringSource 所生成的 Template 时,返回 null 值即可

James 8 years ago
parent
commit
638a0fb58e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/java/com/jfinal/template/IStringSource.java

+ 4 - 1
src/main/java/com/jfinal/template/IStringSource.java

@@ -27,7 +27,10 @@ public interface IStringSource {
 	boolean isModified();
 	
 	/**
-	 * key used to cache
+	 * key used to cache, return false if do not cache the template
+	 * 
+	 * 注意:如果不希望缓存从该 IStreamSource 解析出来的 Template 对象
+	 *      让 getKey() 返回 null 值即可  
 	 */
 	String getKey();