Background session cleanup

Đang mở
#577 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the session store implementations, especially the database and file-based stores mentioned in the issue, and check how expiration is represented and how background jobs are supported. Consider whether cache cleanup belongs in the same mechanism. Done means expired keys are periodically removed from the relevant stores; the issue does not identify specific files or tests.

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

Mô tả

C-lib enhancement
Problem statement

Currently, some of the session store implementations (such as the database store, file-based store) do not do any sort of cleanup for expired keys. This means the session keys will pile up over time and will never get deleted.

When we get a support for background job processing, we should add an automatically run jobs that will clean up expired session keys periodically.

The same thing probably also applies to the Cache.

Proposed solution

Provide a background job that will clean up expired keys periodically.

Alternatives considered

No response

Drawbacks

No response

Additional context

No response

Ngôn ngữ chính
Rust
Star
1.1k
Fork
57
Merge trung bình
17 giờ 39 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 cot-rs/cot

Tất cả issue của cot-rs/cot

Issue tương tự

Thêm issue về Rust

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.