Latest 1.0.9
Homepage https://github.com/mll/MLImageCache
License MIT
Platforms ios 5.0, requires ARC
Authors

Simple yet powerful asynchronous image cache

MLImageCache has been written as an alternative to clumsy SDWebCache. It is based on NSOperation / NSOperationQueue combo, which gives it additional features and safety.

The highlights:

  • Two .m files and .h files. Just drag to your project and go. You can also use CocoaPods.
  • Asynchronous download and disk read gives it an unmatched speed. It does not interfere with scrolling.
  • Uses ARC and is carefully engineered not to induce strong reference cycles. It’s memory reliability is thoroughly tested.
  • It downloads only one copy of an image no matter how many times has it been requested.
  • If multiple downloads are initiated with the same image view, only the last one is processed (important for reusable cells in table views)
  • It can download arbitrary data, not only images.
  • It supports prioritization and simultaneous downloads based on NSOperationQueue priority system.

Installation

Use CocoaPods or copy those 4 files directly into the project.

pod 'MLImageCache'

How to use it?

#import "UIImageView+Cache.h"

...

[self.imageView mll_setImageWithURL: self.urlToImage ];

or simply 

[self.imageView setImageWithURL: self.urlToImage ];

if it does not collide with other libs.

And that’s it! You can replace SDImageCache instantly. For more advanced features see MLImageCache.h

Latest podspec

{
    "name": "MLImageCache",
    "version": "1.0.9",
    "summary": "Simple yet powerful and fast image cache.",
    "description": "# MLImageCachen## Simple yet powerful asynchronous image cachennMLImageCache has been written as an alternative to clumsy [SDWebCache](https://github.com/rs/SDWebImage). It is based on NSOperation / NSOperationQueue combo, which gives it additional features and safety. nnThe highlights:nn* Two .m files and .h files. Just drag to your project and go. You can also use CocoaPods.n* Asynchronous download and disk read gives it an unmatched speed. It does not interfere with scrolling.n* Uses ARC and is carefully engineered not to induce strong reference cycles. It's memory reliability is thoroughly tested.n* It downloads only one copy of an image no matter how many times has it been requested.n* It can download arbitrary data, not only images.n* It supports prioritization and simultaneous downloads based on NSOperationQueue priority system.nn## Installationn  nUse CocoaPods or copy those 4 files directly into the project. In the latter case you also have to install [ASIHTTPRequest](http://allseeing-i.com/ASIHTTPRequest/). n  nIf you wonder why do I use this seemingly obsolete library compare its stability and functionality to [AFNetworking](https://github.com/AFNetworking/AFNetworking). It does not change interface every few months and is super-stable and tested. n  n## How to use it?n  n    #import "UIImageView+Cache.h"n    ...n    [self.imageView setImageWithURL: self.urlToImage ];nAnd that's it! You can replace SDImageCache instantly. For more advanced features see MLImageCache.h",
    "homepage": "https://github.com/mll/MLImageCache",
    "license": "MIT",
    "authors": {
        "Marek Lipert": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/mll/MLImageCache.git",
        "tag": "1.0.9"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This