From e8f081523bdf23b9b396e5a309b01b85ddb5f526 Mon Sep 17 00:00:00 2001 From: zgf Date: Tue, 30 Apr 2024 17:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=96=87=E4=BB=B6=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=A2=84=E5=8A=A0=E8=BD=BD=E6=8E=A5=E5=8F=A3preLoadCa?= =?UTF-8?q?che=E3=80=81getCacheImage,=E8=AF=B7=E6=B1=82=E5=A4=B4,=E4=BB=A5?= =?UTF-8?q?=E5=8F=8AImageKnifeOption=E5=B1=9E=E6=80=A7isCacheable=E3=80=81?= =?UTF-8?q?onlyRetrieveFromCache,=E8=AF=B7=E6=B1=82=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zgf --- entry/src/main/ets/pages/TestIsUrlExist.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/TestIsUrlExist.ets b/entry/src/main/ets/pages/TestIsUrlExist.ets index 90de4e9..da73b05 100644 --- a/entry/src/main/ets/pages/TestIsUrlExist.ets +++ b/entry/src/main/ets/pages/TestIsUrlExist.ets @@ -50,14 +50,14 @@ struct TestIsUrlExist { }) Button("内存缓存获取").onClick(()=>{ ImageKnife.getInstance() - .getCacheImage('https://hbimg.huabanimg.com/95a6d37a39aa0b70d48fa18dc7df8309e2e0e8e85571e-x4hhks_fw658/format/webp',Cache_Type.Memory) + .getCacheImage('https://hbimg.huabanimg.com/95a6d37a39aa0b70d48fa18dc7df8309e2e0e8e85571e-x4hhks_fw658/format/webp',ReadCacheStrategyType.Memory) .then((data)=>{ this.source = data!.source }) }) Button("文件缓存获取").onClick(()=>{ ImageKnife.getInstance() - .getCacheImage('https://hbimg.huabanimg.com/95a6d37a39aa0b70d48fa18dc7df8309e2e0e8e85571e-x4hhks_fw658/format/webp',Cache_Type.File) + .getCacheImage('https://hbimg.huabanimg.com/95a6d37a39aa0b70d48fa18dc7df8309e2e0e8e85571e-x4hhks_fw658/format/webp',ReadCacheStrategyType.File) .then((data)=>{ this.source1 = data!.source })