@@ -354,9 +354,13 @@ extension ParseInstallation {
354354 - parameter options: A set of header options sent to the server. Defaults to an empty set.
355355 - throws: An error of `ParseError` type.
356356 - important: If an object fetched has the same objectId as current, it will automatically update the current.
357+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
358+ desires a different policy, it should be inserted in `options`.
357359 */
358360 public func fetch( includeKeys: [ String ] ? = nil ,
359361 options: API . Options = [ ] ) throws -> Self {
362+ var options = options
363+ options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
360364 let result : Self = try fetchCommand ( include: includeKeys)
361365 . execute ( options: options, callbackQueue: . main)
362366 try Self . updateKeychainIfNeeded ( [ result] )
@@ -374,13 +378,17 @@ extension ParseInstallation {
374378 - parameter completion: The block to execute when completed.
375379 It should have the following argument signature: `(Result<Self, ParseError>)`.
376380 - important: If an object fetched has the same objectId as current, it will automatically update the current.
381+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
382+ desires a different policy, it should be inserted in `options`.
377383 */
378384 public func fetch(
379385 includeKeys: [ String ] ? = nil ,
380386 options: API . Options = [ ] ,
381387 callbackQueue: DispatchQueue = . main,
382388 completion: @escaping ( Result < Self , ParseError > ) -> Void
383389 ) {
390+ var options = options
391+ options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
384392 do {
385393 try fetchCommand ( include: includeKeys)
386394 . executeAsync ( options: options,
@@ -469,6 +477,8 @@ extension ParseInstallation {
469477 increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using
470478 different algorithms. This can also lead to overwriting of `ParseObject`'s by accident as the
471479 client-side checks are disabled. Developers are responsible for handling such cases.
480+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
481+ desires a different policy, it should be inserted in `options`.
472482 */
473483 public func save( isIgnoreCustomObjectIdConfig: Bool ,
474484 options: API . Options = [ ] ) throws -> Self {
@@ -520,6 +530,8 @@ extension ParseInstallation {
520530 increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using
521531 different algorithms. This can also lead to overwriting of `ParseObject`'s by accident as the
522532 client-side checks are disabled. Developers are responsible for handling such cases.
533+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
534+ desires a different policy, it should be inserted in `options`.
523535 */
524536 public func save(
525537 isIgnoreCustomObjectIdConfig: Bool = false ,
@@ -615,6 +627,8 @@ extension ParseInstallation {
615627 - parameter options: A set of header options sent to the server. Defaults to an empty set.
616628 - throws: An error of `ParseError` type.
617629 - important: If an object deleted has the same objectId as current, it will automatically update the current.
630+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
631+ desires a different policy, it should be inserted in `options`.
618632 */
619633 public func delete( options: API . Options = [ ] ) throws {
620634 var options = options
@@ -632,6 +646,8 @@ extension ParseInstallation {
632646 - parameter completion: The block to execute when completed.
633647 It should have the following argument signature: `(Result<Void, ParseError>)`.
634648 - important: If an object deleted has the same objectId as current, it will automatically update the current.
649+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
650+ desires a different policy, it should be inserted in `options`.
635651 */
636652 public func delete(
637653 options: API . Options = [ ] ,
@@ -724,6 +740,8 @@ public extension Sequence where Element: ParseInstallation {
724740 increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using
725741 different algorithms. This can also lead to overwriting of `ParseObject`'s by accident as the
726742 client-side checks are disabled. Developers are responsible for handling such cases.
743+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
744+ desires a different policy, it should be inserted in `options`.
727745 */
728746 func saveAll( batchLimit limit: Int ? = nil , // swiftlint:disable:this function_body_length
729747 transaction: Bool = false ,
@@ -825,6 +843,8 @@ public extension Sequence where Element: ParseInstallation {
825843 increase the probability of colliding `objectId`'s as the client and server `objectId`'s may be generated using
826844 different algorithms. This can also lead to overwriting of `ParseObject`'s by accident as the
827845 client-side checks are disabled. Developers are responsible for handling such cases.
846+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
847+ desires a different policy, it should be inserted in `options`.
828848 */
829849 func saveAll( // swiftlint:disable:this function_body_length cyclomatic_complexity
830850 batchLimit limit: Int ? = nil ,
@@ -1067,6 +1087,8 @@ public extension Sequence where Element: ParseInstallation {
10671087 - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the
10681088 objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else
10691089 the transactions can fail.
1090+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
1091+ desires a different policy, it should be inserted in `options`.
10701092 */
10711093 func deleteAll( batchLimit limit: Int ? = nil ,
10721094 transaction: Bool = false ,
@@ -1117,6 +1139,8 @@ public extension Sequence where Element: ParseInstallation {
11171139 - warning: If `transaction = true`, then `batchLimit` will be automatically be set to the amount of the
11181140 objects in the transaction. The developer should ensure their respective Parse Servers can handle the limit or else
11191141 the transactions can fail.
1142+ - note: The default cache policy for this method is `.reloadIgnoringLocalCacheData`. If a developer
1143+ desires a different policy, it should be inserted in `options`.
11201144 */
11211145 func deleteAll(
11221146 batchLimit limit: Int ? = nil ,
0 commit comments