每个应用程序都有 data 和 cache 。
在Android中,两者之间有什么区别?
每个应用程序都有 data 和 cache 。
在Android中,两者之间有什么区别?
Every app has data and cache.
In Android, what is the difference between the two?
应用程序开发人员决定将有哪些信息保存在"数据" 中,并将其保存在"缓存" 中。
通常,"数据" 用于帐户信息,设置,保存的活动数据,游戏分数,以及需要永久保存的任何内容。清除数据将使您的应用程序"忘记" 所有重新安装它的所有内容。
"缓存" 保存可以以某种方式检索的所有信息和文件(来自因特网或其他方式)。例如,社交应用程序可以缓存所有馈送数据(照片,评论等)。清除缓存可能会导致您的应用程序从它的原始源中重新加载所有丢失(并且必要的)数据。它不应该让你的应用程序表现不好。
App developers decide what information to be kept in "data" and what to be kept in "cache".
Usually, "data" is used for account info, settings, saved activity data, game scores, and whatever is need to be kept permanently. Clearing data will make your app "forget" everything like you have reinstalled it.
"Cache" holds all information and files that can be retrieved somehow (from the internet, or other way). For example social apps can cache all your feed data (photos, comments, and so on). Clearing cache may lead your app to reload all the lost (and necessary) data from it's original source. It shouldn't make your app behave bad.
一般:
cache 是临时文件。一个示例可能是社交媒体应用中的联系人的缩略图。可以在没有任何重大效果的情况下清除这些 - 应用程序可以在需要时再次下载它们 - 如果空间低于Android操作系统,则可以删除缓存文件本身。
数据是"重要" 信息。这可能包括您通常希望应用程序记住的凭据和设置。
In general:
Cache is temporary files. One example might be thumbnails for contacts in a social media app. These can be cleared without any major effect xe2x80x94 the app can just download them again when it needs to xe2x80x94 and if space is low the Android OS may remove cache files itself.
Data is the "important" information. This might include credentials and settings that you generally want the app to remember.
缓存是临时(不必要的)文件,而 data 是应用程序所需的文件。它会节省用户活动并进展
考虑更频繁地清除缓存,否则可能会影响设备性能。当缓存内存增加时,手机变得缓慢而迟钝。它发生在具有低内存低的手机。
Cache are temporary (unnecessary) files, whereas data are files required by the application. It saves users activity and progress
Consider clearing the cache more often, otherwise it may affect the device performance. When cache memory increases, phone becomes slow and laggy. It happens with phones having low internal memory.
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有