MGCacheManager alternatives and similar libraries
Based on the "Cache" category.
Alternatively, view MGCacheManager alternatives based on common mentions on social networks and blogs.
-
HanekeSwift
A lightweight generic cache for iOS written in Swift with extra love for images. -
Disk
Delightful framework for iOS to easily persist structs, images, and data -
PINCache
Fast, non-deadlocking parallel object cache for iOS, tvOS and OS X -
Awesome Cache
Delightful on-disk cache (written in Swift) -
SPTPersistentCache
Everyone tries to implement a cache at some point in their iOS app’s lifecycle, and this is ours. -
RocketData
A caching and consistency solution for immutable models. -
Track
Track is a thread safe cache write by Swift. Composed of DiskCache and MemoryCache which support LRU. -
Cachyr
A small key-value data cache for iOS, macOS and tvOS, written in Swift. -
UITableView Cache
UITableView cell cache that cures scroll-lags on cell instantiating -
MemoryCache
LRU, type-safe, thread-safe memory cache class in Swift
Appwrite - The open-source backend cloud platform
* 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