pinterest / PINCache

Fast, non-deadlocking parallel object cache for iOS, tvOS and OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PINCache - (void)trimToDate:(NSDate *)date There is something wrong with the logic of this method.

sunWaterMood opened this issue · comments

There is something wrong with the logic of this method. The time must be set before the setobject method, and the logic is not correct. Clench the source code and find that as long as the trim method is called, all previous caches will be cleared.

@sunWaterMood I'm not sure I understand, can you provide more details?

  • (void)trimToDate:(NSDate *)date Can you tell me how to clear the previous cache?

@sunWaterMood I'm sorry, I still don't know what the issue is. If you're simply trying to clear the cache, you can call removeAllObjects

If you can provide more details I'm happy to reopen this issue!