Sorin Antohi
960b5b8dde
Added name for background task started for image cache cleanup.
2024-01-22 20:56:49 +02:00
onevcat
c83d62e223
Check store error in disk storage for folder missing
2023-10-29 17:36:32 +09:00
onevcat
fcfc8f68d9
Fix xcframework build warnings
2023-08-26 13:30:37 +09:00
Yaroslav Zarichnyi
1e5cc543e6
Make ‘cachePathBlock’ public
2023-01-26 13:56:43 +02:00
Wei Wang
3e091ee962
Merge pull request #2008 from meiyongsheng/master
...
从本地文件缓存中读取出image对象,设置backgroundDecode之后支持异步解码
2022-11-13 20:56:46 +09:00
Wei Wang
dffcc081c4
Merge pull request #1997 from RomanPodymov/master
...
ImageCache.diskStorageSize
2022-10-11 23:15:26 +09:00
Roman Podymov
09a2496827
Calling calculateDiskStorageSize
2022-10-11 15:43:06 +02:00
onevcat
fb62bea2c9
Add some comments
2022-10-08 18:16:28 +09:00
onevcat
c428b7b0dc
Add originalDataUsed to serializer
...
This allows the processor to apply again if the original data is cached instead of the processed image data stored on the disk. #1912
2022-10-08 00:22:03 +09:00
Roman Podymov
14001ea735
diskStorageSize
2022-10-05 14:11:29 +02:00
Iggy Drougge
964b62d616
Un-nest catch clauses
2022-06-23 17:16:56 +02:00
Iggy Drougge
fc6142840c
Remove unused key from StorageObject
2022-06-23 17:16:56 +02:00
Iggy Drougge
8bbac9b7aa
Use isExpired instead of directly checking expiration.isPast
2022-06-23 17:16:56 +02:00
Iggy Drougge
03d48c13a8
Remove unused code
2022-06-23 17:16:51 +02:00
yongshemmei
53e43704f6
从本地文件缓存中读取出image对象,设置backgroundDecode之后支持异步解码
2022-05-09 12:38:51 +08:00
sunset wan
c240548296
fix:remove redundant word 'disk'
2022-03-28 16:03:35 +08:00
onevcat
95393a0544
Add keepWhenEnteringBackground to memory cache
2021-12-18 23:28:07 +09:00
onevcat
382c5d1955
Add BackgroundKeepingStorageObject
2021-12-18 23:14:43 +09:00
Vlad Z
85f6cbabb4
Added diskStoreWriteOptions & updated diskStorage
2021-08-30 21:46:51 -04:00
fuyoufang
78b2d02e19
1. Convert data directly to [UInt8] to avoid memory copy.
...
2. Modify the wrong code comment
2021-06-22 17:07:37 +08:00
onevcat
9ea2f0419e
Add override entry points for parsed option versions
2021-05-04 14:31:04 +09:00
onevcat
beeb75c7d9
Remove Swift 4 related code
2021-04-20 22:12:33 +09:00
onevcat
71b5402018
Add processor support to autoExtAfterHashedFileName
2021-04-18 16:07:58 +09:00
Tony Tang
9d758b98ea
为文件缓存hash之后的文件名自动添加后缀
2021-03-29 17:48:02 +08:00
onevcat
5b16a4e5c7
Public memory storage
2021-03-07 00:54:58 +09:00
onevcat
41d9dbe7af
Public disk storage methods
2021-03-07 00:51:50 +09:00
onevcat
263dfed520
Keep using the original syntax
2021-02-13 16:55:50 +09:00
onevcat
d3ae6e8a2f
Add no throw version of disk storage
2021-02-13 16:53:12 +09:00
onevcat
6cc54e0896
Extract storage creation methods
2021-02-13 12:08:25 +09:00
onevcat
78afd30ab8
Move image modifying to Kingfisher manager class
2021-01-31 15:05:01 +09:00
onevcat
36448bafc8
Do not store the modified version to memory
2021-01-30 23:46:31 +09:00
onevcat
cfe49cf863
Fix warnings and improve time
2021-01-02 23:46:48 +09:00
onevcat
ae39a5d64b
Remove deprecated things
2020-09-20 14:14:20 +09:00
onevcat
4e6526c7a8
Fix typo
2020-09-14 23:35:51 +09:00
이병찬
4046075223
Modify missing comment in cleanExpiredMemoryCache
2020-08-06 23:36:24 +09:00
이병찬
6d4d58e7f0
Add clearCache, cleanExpiredCache function
2020-08-06 23:35:50 +09:00
onevcat
9fb625873d
Add lock to cache checking set
2020-07-05 10:27:16 +09:00
Raja Baz
045208acb2
Reduce disk I/O when checking isCached
...
This is a low-cost best-effort strategy that triest to reduce as much
as possible the need for I/O to check if something is cached. A file
name we've never seen can just be skipped immediately. Something that
got added and was removed later would still end up hitting the disk to
figure that out, but that's not different from before.
Unsure about the exact multi-threading semantics of that Set though,
we might need to do some king of synchronization
2020-06-30 11:55:48 +03:00
Raja Baz
ee40d4dec8
Fix: avoid unnecessary I/O when building cache file URL
...
For more details see the discussion on:
https://developer.apple.com/documentation/foundation/nsurl/1410614-urlbyappendingpathcomponent
Since we know that we're looking for a file and a trailing slash will
never be necessary, we can safely use the more specific version of the function
2020-06-30 11:09:03 +03:00
Wei Wang
08136c7d2b
Merge pull request #1373 from onevcat/feature/customizable-default-cache-serializer
...
Feature customizable default cache serializer
2019-12-23 18:04:20 +09:00
onevcat
f23ef7a7ef
Apply compression quality to cache serializer and add tests
2019-12-17 23:15:00 +09:00
Wei Wang
29019b2a45
Merge pull request #1372 from onevcat/fix/jpeg-compression-quality
...
Add compression quality version for CacheSerializer
2019-12-15 22:55:14 +09:00
onevcat
a9ed41edc8
Public DefaultCacheSerializer
2019-12-15 00:07:50 +09:00
onevcat
05fe0ece91
Some minor update for type infer
2019-12-14 23:27:16 +09:00
onevcat
c351f975f5
Add compression quality version for CacheSerializer
2019-12-14 23:26:37 +09:00
onevcat
99c6a9f957
Prevent 32bit int overflow when calculating duration forr day
2019-12-13 22:45:29 +09:00
onevcat
dfd5130276
Remove file when attributes setting failure
2019-12-09 21:56:51 +09:00
onevcat
011dc8998a
Throw errors when creating cache file failure
2019-12-08 23:23:57 +09:00
onevcat
10d0edbf9a
Retrieving image now schedule the callback on main
2019-11-09 01:10:36 +09:00
onevcat
cdb6aab7a0
Merge branch 'master' into xcode11
...
# Conflicts:
# Sources/Cache/ImageCache.swift
# Sources/General/Deprecated.swift
2019-09-24 10:11:21 +09:00