mayank.12
I want to cache listDocuments response for a given time like 1 hour to optimize appwrite function calls. How to do this. Is it supported natively or do I have to use other third party libraries?
TL;DR
There is no native support to cache listDocuments response with the Android SDK. You will need to manually implement a caching mechanism. One option is to use RoomDB, which is a library for local storage in Android. Another option is to modify the ARC library, which mimics RemoteConfig from Firebase and can be customized according to your needs. darShan
- You will have to manually write an implementation to cache these results on disk. Example: RoomDB.
- I've created a library that mimics RemoteConfig from Firebase but only looks for 2 attributes, similar to
key: value
structure. You can use that if you have 2 attributes or maybe modify it according to your needs. Here it is: https://github.com/itznotabug/arc.
I'd suggest using RoomDB for managing a long list of docs. though.
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- Our Appwrite organization is suspended
Please give support regarding this , no app is working now , please solve my issue and give support , no one is replying in message section or email.
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...