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

Add max entry size for `CacheOptions`

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend, performance

Hướng nghiên cứu

Start with src/main/java/io/vertx/httpproxy/cache/CacheOptions.java and trace how setMaxSize is applied to the cache and how origin responses are cached. Determine where response size can be checked before caching; done means an option limits cached entry size in bytes and responses exceeding it are not cached.

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

Mô tả

enhancement
Describe the feature

Currently CacheOptions only supports in terms of size, the amount of elements in the cache map (i.e. setMaxSize). I think it would be nice, if there would be an option for maxEntrySize (in bytes) that checks whether the origin's response exceeds the limit, if so caching should be skipped.

Contribution

No response

Ngôn ngữ chính
Java
Star
68
Fork
38
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 eclipse-vertx/vertx-http-proxy

Tất cả issue của eclipse-vertx/vertx-http-proxy

Issue tương tự

Thêm issue về Java

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.