Harish Krishnamurthy
4ceb6665b2
* Adds Queue options to SDWebImagePrefetcher.
...
* Adds option to decompress images in cache and post download.
2014-12-22 16:03:45 -05:00
Tony Arnold
a31b9d46a1
Fix misnamed parameters in comment documentation
2014-08-11 17:27:05 +10:00
Bogdan Poplauschi
b88a552fba
Updated all block params and properties, using defined blocks that have var names (for proper autocomplete). Created a SDWebImageNoParamsBlock to distinguish easier from other no params blocks. Fixes #810
2014-07-16 15:17:08 +03:00
Bogdan Poplauschi
cd4b925448
Update to #732 to fix misspell (completion instead of completition)
2014-07-14 18:29:45 +03:00
Bogdan Poplauschi
6e4fbafa55
#625 In order to fix the deadlock, reviewed the `[SDImageCache diskImageExistsWithKey:]` method. Based on the Apple doc for NSFileManager, using the defaultManager without the dispatch on the ioQueue to avoid the deadlocks. This instance is thread safe. Also created an async variant of this method `[SDImageCache diskImageExistsWithKey:completion:]`
...
For consistency, added async methods in `SDWebImageManager` `cachedImageExistsForURL:completion:` and `diskImageExistsForURL:completion:`
2014-07-14 16:22:00 +03:00
Bogdan Poplauschi
673fca9113
Documentation alignaments
2014-06-19 12:00:23 +03:00
Bogdan Poplauschi
689586f73a
Merge pull request #687 from rokemoon/master
...
Create NSOperation when start operation.
2014-06-15 22:38:07 +03:00
Bogdan Poplauschi
e6c0f56d1f
Exposed cache paths - fixes #339
2014-06-15 22:23:48 +03:00
Diego Chohfi
2ca5eab0e5
#725 adding completition block when removing image from cache, added an extra method so we don't break compatibility with older versions
2014-05-29 11:05:43 -03:00
Ruslan Ahapkin
c285074321
Create NSOperation when start operation.
...
Method getDiskCount returns NSUInteger.
2014-04-03 23:16:48 +04:00
Matej Bukovinski
556665d8a7
Exposed cleanDiskWithCompletionBlock:, added some additional documentation and fixed a typo.
2014-03-24 21:14:32 +01:00
Olivier Poitrey
938c2e0f3f
Fix some indentation issues
2014-03-14 23:56:40 -07:00
Dmitry Fink
b9bb5558e4
Add typedef for cache operation complete block
...
Makes it cleaner when users want to define the block independantly
2014-03-09 23:51:56 -07:00
limbo-lab
1d8bfa6064
added clearDiskOnCompletion
2014-02-18 15:30:14 +08:00
Fabrice Aneche
6d8133557c
NS_ENUM & NS_OPTIONS
2014-01-06 17:13:30 -08:00
Fabrice Aneche
6dc02bd8f7
reformat code (appcode)
2014-01-06 17:12:24 -08:00
Fabrice Aneche
77fad5cdf1
changed sizes to NSUInteger
2014-01-03 17:38:29 -08:00
Fabrice Aneche
d3a9a57a0d
support arm64
2014-01-03 17:14:13 -08:00
Erik Charlebois
00918d0908
Fix documentation param name mismatch
2013-12-16 14:45:30 -05:00
Bogdan Poplauschi
b201e137d8
Added PNG detection to be able to determine at runtime if a downloaded image should be saved as PNG or as JPEG
2013-12-11 12:15:05 +01:00
Joshua Gross
c3ee589681
NSInteger -> NSUInteger, add getter method
2013-11-22 16:38:18 -08:00
Joshua Gross
c7f2665d05
Allow setting a custom memory cost limit for the in-memory NSCache. This can help to keep memory down before memory warnings are sent by the device.
2013-11-22 16:16:03 -08:00
Don
547345c7f5
Added and exposed some methods that allow to check if an image exists on disk without taking it off disk and decompressing it first. Makes for a nice performance boost when checking if many files exist in the disk cache already
2013-09-12 11:58:43 -07:00
Matt Pennig
fa987a1818
Canceling the SDWebImageOperation will also cancel the expensive disk cache query operation.
2013-08-11 23:12:55 -07:00
Jon Parise
18334bcc8f
Add -calculateSizeWithCompletionBlock:.
...
This method provides a way to asynchronously calculate the size of the
disk cache, reporting both the number of files and the total file
size.
This is useful when querying large disk caches because the file system
enumeration operation can take some time.
2013-06-25 19:27:20 -07:00
Salvatore Randazzo
447f1ccc23
Custom image cache search paths
...
This is particularly useful if you are bundling images with your app that have been cached by SDWebImage. (ie. if you are 'seeding' your app with a core-data file that contains a lot of URL's to images and would like to also seed those images without having to copy every one of them over)
For example, you can tell SDImageCache to add '[[NSBundle mainBundle] resourcePath]' as a custom path, so that the main bundle will be queried for cached images.
This prevents the need for you to copy pre-cached images over to the caches/ImageCache folder that SDImageCache normally checks for.
The custom paths are read-only.
2013-06-07 17:57:28 +02:00
Jon Parise
32f011185a
Support a maximum disk cache size in -cleanDisk.
...
Previously, -cleanDisk would only remove cache files that were older
than the configured expiration date. This allowed the disk cache to
grow significantly if a large number of resources were cached over a
short period of time.
This change adds a second (optional) size-based cleaning pass that
removes files from the disk cache until its overall size falls below
half of the configured maximum size. Older files are deleted first.
The size-based pass is disabled by default (maxCacheSize == 0).
2013-03-27 19:06:22 -07:00
Jon Parise
1e37b716c7
-getSize now returns an `unsigned long long`.
...
This type now matches the type and width of the value returned by the
`fileSize` accessor of the `NSDictionary (NSFileAttributes)` category
(which is what is used when accumulating the total cache size).
2013-03-27 14:55:30 -07:00
Andrew Vyazovoy
6284e4070d
Fixed typo.
2013-03-27 22:33:20 +07:00
Joshua Kalpin
7779896163
Updating comments to be more accurate and fix typos
2013-03-22 15:10:00 -04:00
Yasuhiro Inami
17cc72d5ab
Add synchronous disk-cache loading method.
2013-02-13 19:07:56 +09:00
Olivier Poitrey
1e53e91513
Add imageFromMemoryCacheForKey: method to synchronously query the memory cache ( fix #263 )
2013-01-16 11:43:21 +01:00
Matej Bukovinski
2e8c02556a
Passing the exact cache type in the completion block.
...
- none, disk and memory
- can still be used as a bool (if true there was a cache hit)
2012-11-19 15:55:09 +01:00
Salvatore Randazzo
bd72fe1034
Fix documentation directive
2012-11-09 09:05:49 -05:00
Olivier Poitrey
2227266c41
First beta of SDWebImage 3.0
...
This version is a rewrite of the lib using iOS 5.0 as minimum target.
The lib as thus been refactored to use blocks/GCD from the ground up.
As a consequence, all delegate code style has been removed. The result
is a lot less lines of code and more flexibility.
2012-11-04 10:09:10 +01:00
Olivier Poitrey
16595c950d
Merge pull request #183 from gotosleep/502f74042f10aa3a34d95a5e3f3e9a6500471554
...
Use NSCache instead of a dictionary for the memory cache.
2012-11-01 17:11:48 -07:00
Kevin Monahan
0e075907a4
Add the ability to set max cache age.
2012-09-07 01:20:13 +02:00
Jesse Andersen
502f74042f
Use NSCache instead of a dictionary for the memory cache.
2012-06-05 22:15:04 -07:00
Jeff Cole
102d7bd484
Fix the description for getMemorySize
2012-05-11 10:02:00 -04:00
Jeff Cole
d6534c7fbc
Add getDiskCount, getMemorySize, and getMemoryCount methods to SDImageCache for diagnostic purposes
2012-05-11 07:40:49 -04:00
Olivier Poitrey
110799614f
Add appledoc comments
2012-05-10 14:07:38 +02:00
Olivier Poitrey
dd5f15055d
Move all source to a subdirectory to comply with XCode 4 standards
2012-05-09 12:37:35 +02:00