-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Description
add a method that allows to get the date when the cache was created.
- (NSDate*) getCreatedAt:(NSString*)key;It will then allow to use this logic.
if has cachedData
load from cachedData
if cachedCreateDate is old
fetch online, cache it and reload
else
fetch online, cache it and load
I want to set the cache as long as possible, but if it is old I would like to load from cache and fetch online too.
Metadata
Metadata
Assignees
Labels
No labels