Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android端 用户数据占用空间异常 #21

Open
guozhigq opened this issue Aug 14, 2023 · 2 comments
Open

android端 用户数据占用空间异常 #21

guozhigq opened this issue Aug 14, 2023 · 2 comments
Labels
问题反馈 Something isn't working

Comments

@guozhigq
Copy link
Owner

No description provided.

@guozhigq guozhigq added the 问题反馈 Something isn't working label Aug 14, 2023
@guozhigq
Copy link
Owner Author

hive put
CachedNetworkImage
导致的

@guozhigq
Copy link
Owner Author

guozhigq commented Aug 15, 2023

Hive 只是追加数据存储。put或del时,将新的数据写入,旧的数据还存在,所以需要设置旧数据的缓存上限。


Hive文档:对数据进行压缩

await Hive.openBox(
'boxname',
compactionStrategy: (entries, deletedEntries) {
 return deletedEntries > 10;
 },
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
问题反馈 Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant