Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit maximum cache memory? #16

Open
xhzengAIB opened this issue Sep 29, 2014 · 3 comments
Open

How to limit maximum cache memory? #16

xhzengAIB opened this issue Sep 29, 2014 · 3 comments

Comments

@xhzengAIB
Copy link

@luisrecuenco
Hi!
How to limit maximum cache memory?I look at the inside as if does not implement this feature

Jack

@luisrecuenco
Copy link
Owner

You can use maxDirectorySize property of LRImageCache

@xhzengAIB
Copy link
Author

@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

@luisrecuenco
Copy link
Owner

I'm afraid I haven't implemented any mem cache check like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants