# Temporary storage for PFObject arrays in iOS

**URL:** <https://community.parseplatform.org/t/temporary-storage-for-pfobject-arrays-in-ios/1729>\
**Category:** iOS SDK 📱⌚️💻\
**Created:** [June 4, 2021, 10:05am UTC](https://community.parseplatform.org/t/temporary-storage-for-pfobject-arrays-in-ios/1729 "2021-06-04T10:05:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumi](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sumi](https://community.parseplatform.org/u/Sumi)\
**Post date:** [June 4, 2021, 10:05am UTC](https://community.parseplatform.org/t/temporary-storage-for-pfobject-arrays-in-ios/1729/1 "2021-06-04T10:05:14Z")

</div>

Hello,

Do you have any recommendations about local storage for PFObjects?

I am trying to find a way to cache multiple Parse object arrays (so that it can show the data even when it takes time to receive data back from the server). We cannot use query.cache because now we are using cloud code to do the quaries.

We were advised to make the PFObject conform to NSCoding, so that we can use NSKeyedArchiver to store it in the archive.

So, after seeing this post, [swift - PFFile conforming to NSCoding - Stack Overflow](https://stackoverflow.com/questions/57937316/pffile-conforming-to-nscoding)  
I tried to use this library: [GitHub - eladb/Parse-NSCoding: iOS library for serializing Parse objects](https://github.com/eladb/Parse-NSCoding)  
But could not get it to work.

Has anyone used this library before? Or are there other simple ways to “make the PFObject conform to NSCoding”? Or any recommendation about how to store PFObjects on local devices?

I would really appreciate if anyone could give me any insight about this problem…

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [June 4, 2021, 3:08pm UTC](https://community.parseplatform.org/t/temporary-storage-for-pfobject-arrays-in-ios/1729/2 "2021-06-04T15:08:24Z")

</div>

Why don’t you use the SDK built-in Local Datastore ([iOS Developers Guide | Parse](http://docs.parseplatform.org/ios/guide/#local-datastore))?

---

<div class="post-metadata">

**Author:** ![Sumi](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sumi](https://community.parseplatform.org/u/Sumi)\
**Post date:** [June 4, 2021, 3:42pm UTC](https://community.parseplatform.org/t/temporary-storage-for-pfobject-arrays-in-ios/1729/3 "2021-06-04T15:42:55Z")

</div>

oh I see! I didn’t know about this. I will check this out. Thanks a lot!!
