forked from floraachy/ImageKnife
1.DiskLruCache: setMaxSize need to trimToSize
Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
parent
1b20f3c219
commit
a30a0a5bf0
|
@ -162,6 +162,7 @@ export class DiskLruCache {
|
|||
*/
|
||||
setMaxSize(max: number) {
|
||||
this.maxSize = max
|
||||
this.trimToSize()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue