We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cdf84 commit 3c75308Copy full SHA for 3c75308
AVOS/AVOSCloud/Cache/AVCacheManager.m
@@ -38,6 +38,7 @@ - (instancetype)init {
38
self = [super init];
39
if (self) {
40
_cacheQueue = dispatch_queue_create("avos.paas.cacheQueue", DISPATCH_QUEUE_SERIAL);
41
+ _diskCachePath = [AVCacheManager path];
42
}
43
return self;
44
@@ -47,13 +48,6 @@ + (NSString *)path {
47
48
return [AVPersistenceUtils avCacheDirectory];
49
50
-- (NSString *)diskCachePath {
51
- if (!_diskCachePath) {
52
- _diskCachePath = [AVCacheManager path];
53
- }
54
- return _diskCachePath;
55
-}
56
-
57
- (NSString *)pathForKey:(NSString *)key {
58
return [self.diskCachePath stringByAppendingPathComponent:key];
59
0 commit comments