MGCacheManager alternatives and similar libraries
Based on the "Cache" category.
Alternatively, view MGCacheManager alternatives based on common mentions on social networks and blogs.
-
SPTPersistentCache
Everyone tries to implement a cache at some point in their iOS app’s lifecycle, and this is ours. -
Track
Track is a thread safe cache write by Swift. Composed of DiskCache and MemoryCache which support LRU.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of MGCacheManager or a related project?
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
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