@ -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