zfile-dev / zfile-dev/zfile

有没有可能实现这样的缓存机制

Open
#339 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
10.8k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

看了文档https://docs.zfile.vip/#/config?id=%e7%bc%93%e5%ad%98%e8%bf%87%e6%9c%9f%e6%97%b6%e9%97%b4
目录缓存 和 下载地址 的过期时间是同一个配置

假设情况是这样的:
一个盘内文件的目录结构是较长时间不变的。
那么可以把目录缓存过期时间设置到1天1周甚至更多,但是下载链接的寿命显然没那么长。

那么有没有可能实现让这两个缓存过期时间分别设置,可以适当延长目录的缓存时间,提高性能和减少api的调用。

不知道好不好实现,以上只是一个疑问。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cache expiration section in the linked documentation and trace the existing cache configuration and usage in the repository. Determine whether directory listings and download URLs can have separate expiration settings; done means the two lifetimes are independently configurable and the behavior is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.