@@ -266,15 +266,12 @@ extension ParseFile {
266
266
- parameter callbackQueue: The queue to return to after synchronous completion.
267
267
Default value of .main.
268
268
- returns: A saved `ParseFile`.
269
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
270
- desires a different policy, it should be inserted in `options`.
271
269
*/
272
270
public func save( options: API . Options = [ ] ,
273
271
stream: InputStream ,
274
272
callbackQueue: DispatchQueue = . main,
275
273
progress: ( ( URLSessionTask , Int64 , Int64 , Int64 ) -> Void ) ? = nil ) throws {
276
274
var options = options
277
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
278
275
if let mimeType = mimeType {
279
276
options. insert ( . mimeType( mimeType) )
280
277
} else {
@@ -300,13 +297,10 @@ extension ParseFile {
300
297
- parameter options: A set of header options sent to the server. Defaults to an empty set.
301
298
- parameter callbackQueue: The queue to return to after synchronous completion.
302
299
- returns: A saved `ParseFile`.
303
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
304
- desires a different policy, it should be inserted in `options`.
305
300
*/
306
301
public func save( options: API . Options = [ ] ,
307
302
callbackQueue: DispatchQueue ) throws -> ParseFile {
308
303
var options = options
309
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
310
304
if let mimeType = mimeType {
311
305
options. insert ( . mimeType( mimeType) )
312
306
} else {
@@ -376,14 +370,11 @@ extension ParseFile {
376
370
It should have the following argument signature: `(task: URLSessionDownloadTask,
377
371
bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)`.
378
372
- returns: A saved `ParseFile`.
379
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
380
- desires a different policy, it should be inserted in `options`.
381
373
*/
382
374
public func save( options: API . Options = [ ] ,
383
375
callbackQueue: DispatchQueue = . main,
384
376
progress: ( ( URLSessionTask , Int64 , Int64 , Int64 ) -> Void ) ? ) throws -> ParseFile {
385
377
var options = options
386
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
387
378
if let mimeType = mimeType {
388
379
options. insert ( . mimeType( mimeType) )
389
380
} else {
@@ -538,8 +529,6 @@ extension ParseFile {
538
529
- parameter callbackQueue: The queue to return to after synchronous completion.
539
530
Default value of .main.
540
531
- returns: A saved `ParseFile`.
541
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
542
- desires a different policy, it should be inserted in `options`.
543
532
*/
544
533
public func fetch( options: API . Options = [ ] ,
545
534
stream: InputStream ,
@@ -556,7 +545,6 @@ extension ParseFile {
556
545
if let tags = tags {
557
546
options. insert ( . tags( tags) )
558
547
}
559
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
560
548
options = options. union ( self . options)
561
549
return try downloadFileCommand ( )
562
550
. executeStream ( options: options,
@@ -570,8 +558,6 @@ extension ParseFile {
570
558
- parameter options: A set of header options sent to the server. Defaults to an empty set.
571
559
- parameter callbackQueue: The queue to return to after synchronous completion.
572
560
- returns: A saved `ParseFile`.
573
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
574
- desires a different policy, it should be inserted in `options`.
575
561
*/
576
562
public func fetch( includeKeys: [ String ] ? = nil ,
577
563
options: API . Options = [ ] ,
@@ -588,7 +574,6 @@ extension ParseFile {
588
574
if let tags = tags {
589
575
options. insert ( . tags( tags) )
590
576
}
591
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
592
577
options = options. union ( self . options)
593
578
return try downloadFileCommand ( )
594
579
. execute ( options: options,
@@ -600,8 +585,6 @@ extension ParseFile {
600
585
- parameter includeKeys: Currently not used for `ParseFile`.
601
586
- parameter options: A set of header options sent to the server. Defaults to an empty set.
602
587
- returns: A saved `ParseFile`.
603
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
604
- desires a different policy, it should be inserted in `options`.
605
588
*/
606
589
public func fetch( includeKeys: [ String ] ? = nil ,
607
590
options: API . Options = [ ] ) throws -> ParseFile {
@@ -649,8 +632,6 @@ extension ParseFile {
649
632
It should have the following argument signature: `(task: URLSessionDownloadTask,
650
633
bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)`.
651
634
- returns: A saved `ParseFile`.
652
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
653
- desires a different policy, it should be inserted in `options`.
654
635
*/
655
636
public func fetch( options: API . Options = [ ] ,
656
637
callbackQueue: DispatchQueue = . main,
@@ -667,7 +648,6 @@ extension ParseFile {
667
648
if let tags = tags {
668
649
options. insert ( . tags( tags) )
669
650
}
670
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
671
651
options = options. union ( self . options)
672
652
return try downloadFileCommand ( )
673
653
. execute ( options: options,
@@ -715,9 +695,7 @@ extension ParseFile {
715
695
It should have the following argument signature: `(task: URLSessionDownloadTask,
716
696
bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)`.
717
697
- parameter completion: A block that will be called when file fetches or fails.
718
- It should have the following argument signature: `(Result<Self, ParseError>)`
719
- - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
720
- desires a different policy, it should be inserted in `options`.
698
+ It should have the following argument signature: `(Result<Self, ParseError>)`.
721
699
*/
722
700
public func fetch( options: API . Options = [ ] ,
723
701
callbackQueue: DispatchQueue = . main,
@@ -735,7 +713,6 @@ extension ParseFile {
735
713
if let tags = tags {
736
714
options. insert ( . tags( tags) )
737
715
}
738
- options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
739
716
options = options. union ( self . options)
740
717
downloadFileCommand ( )
741
718
. executeAsync ( options: options,
0 commit comments