希望增加按存储来全局更新缓存的api、缓存重新刷新的webhook
- Vorherrschende Sprache
- Go
- Sterne
- 50.2k
- Forks
- 7.9k
- Ø Merge
- 7 T. 21 Std.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### Please make sure of the following things
- [X] I have read the [documentation](https://alist.nn.ci).
- [X] I'm sure there are no duplicate issues or discussions.
- [X] I'm sure this feature is not implemented.
- [X] I'm sure it's a reasonable and popular requirement.
### Description of the feature / 需求描述
1.按存储来全局更新缓存的api: 存储会设置缓存过期时间,可以触发全局缓存刷新。
我在api文档中只找到了`/api/fs/list`的`refresh`参数,这个api只会刷新当级目录,如果当级目录的子文件夹内发生修改,有时无法更新。
所以如果提供一个能像***缓存过期后触发某个存储全局更新缓存***的api,可能会更方便一些。
2. 缓存重新刷新的webhook:当定时过期触发、调用1中说的全局更新缓存之后,如果提供一个webhook,设置好自己的回调地址,在某些场景中让轮询变为事件驱动,可以提升效率节省资源。
### Suggested solution / 实现思路
将程序内置的定时刷新缓存功能封装,提供api调用
当封装的功能运行结束,触发webhook,调用预设的url
### Additional context / 附件
_No response_
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.