-
Notifications
You must be signed in to change notification settings - Fork 77
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
Need help about caching #99
Comments
I don't know about the file paths but you can prevent garbage collection on cached items by "locking" them using the lockDataForKeys:callback:onQueue |
Thanks @chrisbtreats lockDataForKeys:callback:onQueue works perfect for what I need The idea behind the folder is to show the user how much storage to book is taking.
If there is another way to calculate the size of an array of keys, I won't need to change the folder
But if I can't do that, it will be so easy to calculate a size of a specific folder |
I just read all the code, and it's not possible, but looks like it's possible to change the folder for each instance. Also i will create that feature and submit a PR, something like: |
I have an app, that is a comic book reader, so the user can download a book then read it later, even without internet.
I'm thinking to cache all pages(images) of the book with SPTPersistentCache.
I need to save each book in a different folder, ex:
spider man
will be saved on a folderspider-man/pages
, minions will be saved onminions/pages
and so on...Also SPTPersistentCache can't garbage the books downloaded, it must keep the cache until the user delete that specific book. Also no disk size limite.
What I need is the very same way Spotify does with offline musics downloaded. Can I do that?
The text was updated successfully, but these errors were encountered: