CacheManager

interface CacheManager

plugins/mpm/cache/ 配下のキャッシュディレクトリを管理するインターフェース

mpm cache list|size|clean コマンドから利用される(HTTP API には未公開)。

Functions

Link copied to clipboard
abstract fun clean(expiredOnly: Boolean = false): Either<MpmError, CacheCleanResult>

キャッシュエントリを削除する

Link copied to clipboard
abstract fun list(): Either<MpmError, List<CacheEntryInfo>>

キャッシュエントリの一覧を取得する

Link copied to clipboard
abstract fun size(): Either<MpmError, CacheSizeInfo>

キャッシュディレクトリ全体のサイズ情報を取得する