-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow backup opt out #121
base: master
Are you sure you want to change the base?
Allow backup opt out #121
Conversation
@@ -51,6 +51,7 @@ - (instancetype)init | |||
_cachePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"/com.spotify.temppersistent.image.cache"]; | |||
_cacheIdentifier = @"persistent.cache"; | |||
_useDirectorySeparation = YES; | |||
_shouldExcludeFromBackup = NO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aodhol You probably need to provide the deep copy of this. You have it down there in copyWithZone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super important but would be nice to include it in debugDescription
.
@@ -114,6 +114,12 @@ FOUNDATION_EXPORT const NSUInteger SPTPersistentCacheMinimumExpirationLimit; | |||
*/ | |||
@property (nonatomic, copy) NSString *cachePath; | |||
|
|||
/** | |||
Excludes the cache directory from backup. | |||
@discussion Some users may wish to have the cache directory excluded from backup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aodhol In order to avoid any confusion, would be nice to mention the default value here maybe.
This change adds an option to exclude the cache directory from backup the first time it is created.