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

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

Closed
sunWaterMood opened this issue Dec 10, 2019 · 3 comments
Assignees

Comments

@sunWaterMood
Copy link

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.

@garrettmoon
Copy link
Collaborator

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

@sunWaterMood
Copy link
Author

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

@garrettmoon
Copy link
Collaborator

@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!

This issue was closed.
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

3 participants