-
Notifications
You must be signed in to change notification settings - Fork 336
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
Cache with RealmSwift #36
Comments
@arden Could you please specify what kind of errors do you get? |
this error is because get cache data from Cache while have no data with given cache name. |
@arden When I started reading this issue, it was interesting but seeing as you are trying to cache an actual Realm object, you now have my full attention. Mind sharing some more information about what you are doing here, just to ease my curiosity. Think about the cats... Also, to help with debugging, it would help a lot if you pasted some of the error logs that you get. |
OK,i'm use the Cache in my project, but found some errors, so i have removed the Cache from my project. |
Why would you want to cache a Realm object, @arden? That would be like using Core Data to save Realm objects in a sense, does it make any sense? |
@RamonGilabert Because i'm hope use only one Model class instead of serveral Model classes, that they are look the same. |
@arden |
@vadymmarkov thanks, i will try again use your proposal。 |
I'll close this issue for lack of activity, feel free to reopen if you have further issues. |
when i'm use cache and RealmSwift,for example:
import Foundation
import RealmSwift
import ObjectMapper
import Cache
class Session: Object, Mappable {
dynamic var token = ""
dynamic var ttl: Double = 0
}
extension Session: Cachable {
}
there have some errors for decode method.
The text was updated successfully, but these errors were encountered: