|
|
|
@ -109,7 +109,7 @@ class ACache private constructor(cacheDir: File, max_size: Long, max_count: Int) |
|
|
|
|
* @param saveTime 保存的时间,单位:秒 |
|
|
|
|
*/ |
|
|
|
|
fun put(key: String, value: String, saveTime: Int) { |
|
|
|
|
put(key, Utils.newStringWithDateInfo(saveTime, value)) |
|
|
|
|
if (saveTime == 0) put(key, value) else put(key, Utils.newStringWithDateInfo(saveTime, value)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -245,7 +245,7 @@ class ACache private constructor(cacheDir: File, max_size: Long, max_count: Int) |
|
|
|
|
* @param saveTime 保存的时间,单位:秒 |
|
|
|
|
*/ |
|
|
|
|
fun put(key: String, value: ByteArray, saveTime: Int) { |
|
|
|
|
put(key, Utils.newByteArrayWithDateInfo(saveTime, value)) |
|
|
|
|
if (saveTime == 0) put(key, value) else put(key, Utils.newByteArrayWithDateInfo(saveTime, value)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|