pull/487/head^2
gedoor 4 years ago
parent 946c08e21f
commit c177615560
  1. 3
      app/src/main/java/io/legado/app/help/CacheManager.kt

@ -5,6 +5,9 @@ import io.legado.app.data.entities.Cache
object CacheManager {
/**
* saveTime 单位为秒
*/
@JvmOverloads
fun put(key: String, value: Any, saveTime: Int = 0) {
val deadline = if (saveTime == 0) 0 else System.currentTimeMillis() + saveTime * 1000

Loading…
Cancel
Save