Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

aodhol
Copy link

@aodhol aodhol commented Jan 16, 2020

This change adds an option to exclude the cache directory from backup the first time it is created.

_cachePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"/com.spotify.temppersistent.image.cache"];
_cacheIdentifier = @"persistent.cache";
_useDirectorySeparation = YES;
_shouldExcludeFromBackup = NO;
Copy link

@SPTElyasn SPTElyasn Jan 17, 2020

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

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.


/**
Excludes the cache directory from backup.
@discussion Some users may wish to have the cache directory excluded from backup.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants