如何将 DiskCache 插件限制为特定的存储大小?

How to limit DiskCache plugin to a specific storage size?

我正在使用 DiskCache 插件。查看文档,我看到 AutoClean 属性显示

If true, items from the cache folder will be automatically 'garbage collected' if the cache size limits are exceeded. Defaults to false.

缓存大小限制在哪里定义的?我在 Azure 网站上将 运行 保留在我的 10 GB space 之外。我如何限制为 8GB?

减少 subfolders 设置以限制允许的文件数量。这是一个基于活动文件数量的弹性限制(I/O 流失非常糟糕)。默认限制为 400 * 个子文件夹,最大为 1000 * 个子文件夹。