Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Auto Extend the cached file's longevity if the user views it before it expired.

Đang mở
#445 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

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

Hướng nghiên cứu

Chưa xác định được tệp, bài kiểm thử hoặc điểm vào nào. Trước tiên, hãy tìm các luồng hết hạn và loại bỏ cache trong repository, sau đó làm rõ API và ngữ nghĩa gia hạn của tùy chọn. Công việc được xem là hoàn tất khi các tệp đã được xem gia hạn thời gian tồn tại, còn các tệp chưa được xem sẽ bị xóa sau khi hết hạn, với các bài kiểm thử bao quát cả hai hành vi.

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

Mô tả

Auto Extend Longevity (Maybe Boolean)

an option to auto-extend the cached file's expiration date or longevity.

Contextualize the feature

It would be great, since, for example, like my application, I want to extend the longevity of a cached file every time a user views it. So, that it wouldn't cost me a lot with database: Bandwidth.

Describe the feature

Maybe add an option to enable the auto-extend longevity option, so that every time a user views a file its longevity time is extended. For example, I've set my file's longevity to 3 days. If the user views this file on day 2, a day before expiration, the expiration date will be extended by 2 days. Now the file would expire 3 days after the user viewed it. It would continue extending the expiration date and longevity unless a user hasn't viewed this file for 3 consecutive days.

This would help greatly if the application we're implementing it in is a social media type or e-commerce. We can cache the images and auto-extend their expiration date every time a user views them. But please make sure that the file is removed after the expiration date is over.

Ngôn ngữ chính
Dart
Star
812
Fork
511
Merge trung bình
28 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Baseflow/flutter_cache_manager

Tất cả issue của Baseflow/flutter_cache_manager

Issue tương tự

Thêm issue về Dart

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.