Skip to main content

Module cache

Module cache 

Source
Expand description

安装记录缓存 <plugins>/.plugins.json。

这个文件是加速与展示用,不是事实来源 —— 事实来源永远是每个插件目录里的 manifest。缓存丢了、坏了,list() 会从磁盘重建。

Structs§

Index
.plugins.json 的内容。
IndexEntry
一条安装记录。

Enums§

InstallSource
插件是怎么装进来的。

Constants§

CACHE_VERSION
当前缓存 schema 版本。

Functions§

now_unix
当前 Unix 秒。取不到系统时间时返回 0(宁可时间戳不准,也不要让安装失败)。