React Native 中的 AsyncStorage 有多大? [英] How large is AsyncStorage in React Native?

查看:71
本文介绍了React Native 中的 AsyncStorage 有多大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档说应该使用它代替 LocalStorage,但它没有列出任何关于它有多大的内容.如果我记得,Web 浏览器中的 LocalStorage 只有大约 10mb.

The documentation says it should be used instead of LocalStorage, but it doesn't list anything regarding how large it is. If I recall, LocalStorage in web browsers is only about 10mb.

https://facebook.github.io/react-native/docs/asyncstorage.html

推荐答案

如果有空闲空间,它会写入磁盘并且非常大.在 iOS 上,除了底层操作系统强加的之外,没有人为的上限:https://stackoverflow.com/a/1897383/454967.

It writes to disk and is very large if there is free space. On iOS there are no artificial caps other than what the underlying operating system imposes: https://stackoverflow.com/a/1897383/454967.

这篇关于React Native 中的 AsyncStorage 有多大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆