Popularity
0.6
Stable
Activity
0.0
Stable
11
1
3

Code Quality Rank: L5
Programming language: Objective-C
License: GNU General Public License v3.0 only
Tags: Cache    

MGCacheManager alternatives and similar libraries

Based on the "Cache" category.
Alternatively, view MGCacheManager alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of MGCacheManager or a related project?

Add another 'Cache' Library

README

MGCacheManager

-A tool to manage caches with expiry date.

Advantages : -Improves any Application performance requires caching content or Apps relaying on HTTP API.

*** NOTE ***

Recommened to implement this Class just with GET methods.

Response Timing Test

First Run Response Time 1.891051 sec

Second Run Response Time 0.025160 sec

Workflow

Workflow

Example for Request ( Using AFNetworking )

 #import "MGCacheManager.h"

 + (void)getPosts:(void (^)(id JSON))complete
{
    id cache = [MGCacheManager loadDataFromCacheFileNameKey:@"posts"];

    if (cache) {
        complete(cache);
        return;
    }

    [API sendGetPayload:nil toPath:@"posts" withLoadingMessage:nil complete:^(id JSON){

        complete([MGCacheManager saveAndReturnKeyResponse:JSON key:@"posts" cachePeriod:LONG_CACHE_DURATION]);

    }];
}

Any issues or recommendations , please contact me or open a new issue