LRImageManager
LRImageManager copied to clipboard
How to limit maximum cache memory?
@luisrecuenco Hi! How to limit maximum cache memory?I look at the inside as if does not implement this feature
Jack
You can use maxDirectorySize
property of LRImageCache
@luisrecuenco memory cache. the costLimit :https://github.com/tumblr/TMCache/blob/master/TMCache/TMMemoryCache.h#L44
https://github.com/tumblr/TMCache/blob/master/TMCache/TMMemoryCache.m#L184
When i set object to memory cache. will be check the max memory cache size. if current cache size > max memory cache size, it call clear memory method. not waiting the app did enter background call clear memory cache.
Jack
I'm afraid I haven't implemented any mem cache check like that.