rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

Size limit for each key / value for react native async storage #1327

Open Stevemoretz opened 3 years ago

Stevemoretz commented 3 years ago

You want to:

Guys I need some help figuring out something about async storage. on android it has a 6mb limit, I want to know what is its each key value pair limits for each key how big can be the value?

Details:

If it uses a database I think the limit will be the database column max size limit :(

ckalika commented 3 years ago

@Stevemoretz The specific size of the key/value pairs would entirely depend on the storage engine (and/or underlying implementation) that you use and how you decide to configure it. If you're using @react-native-async-storage/async-storage then this will likely help you deal with the size limits issue.

https://react-native-async-storage.github.io/async-storage/docs/advanced/db_size

Is there a reason you're asking about the key size? Would you be looking to implement something outside of async storage to write to disk, for example?