Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 637 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 637 Bytes

MFCache

MFCache is a simple / lightweight Cache API for iOS. It's built on plugin architecture. For example, here's how to cache any data.

// Save data into cache
NSArray *items = [NSArray array];
[MFCache setValue:items forKey:@"LoadedItems"];

// Save data with expiration time 
[MFCache setValue:items forKey:@"LoadedItems" expiration:60];

// Retrieve data from cache
NSArray *restoredItems = [MFCache valueForKey:@"LoadedItems"];

// Clear
[MFCache flushAll];

How To Get Started