Baseflow / Baseflow/flutter_cache_manager

Cache eviction

Đang mở
#261 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
809
Fork
510
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
1

Mô tả

Hi, thank you for a great project simplifying persistent caching in flutter!

## 🚀 Feature Requests
Eviction based on cache size. It seems the only policy available is number of objects and age.

### Contextualize the feature
I only store immutable objects. No object can ever change. It therefore does not make sense to me to evict objects based on age. I wish that the user can set a maximum allowed storage capacity for the cache, such as 250MB and then fill this up, never evicting until the cache is full. Never evicting could also be important to make offline mode work smoother, though I realize offline support might be outside the scope of this project.

### Describe the feature

### Platforms affected (mark all that apply)
- [X] :iphone: iOS
- [X] :robot: Android

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by locating the existing cache eviction logic for object count and age, then inspect how cache configuration is exposed. Define how a configurable maximum storage capacity should interact with the current policies, and cover the behavior for iOS and Android with tests before considering the feature done.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart, flutter
Lĩnh vực
mobile
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.