1.DiskLruCache: setMaxSize need to trimToSize

Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
zhoulisheng 2022-05-12 10:34:33 +08:00
parent 1b20f3c219
commit a30a0a5bf0
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ export class DiskLruCache {
*/
setMaxSize(max: number) {
this.maxSize = max
this.trimToSize()
}
/**