-
Notifications
You must be signed in to change notification settings - Fork 334
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
setObject Thread Problem #181
Comments
Hey @mcfans! Yes, it will happen in your example, but why would you need to do that? |
Actually I am trying to encode the key for the data that I want to save , not the data itself.The Codable implementation is not just for this Cache framework, for some reason, that encoded data must be small.So I try to save the large data with the Cache, and encode the generated key to the encoder, then save the encoded data with the Cache.Actually, in my case,that data is from an image, after reading your documentation,I used the ImageWrapper to solve this issue. But I think you guys need to know this if you don’t. My English is poor,I hope I made my statement clearly, thanks a lot.
… 在 2018年4月20日,上午1:27,Vadym Markov ***@***.***> 写道:
Hey @mcfans! Yes, it will happen in your example, but why would you need to do that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
In this case I would just do it a bit differently: save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code below will lead to dead lock,because in the setObjectmethod it will try to encode this class in a sync queue,but in the encodemethod,the user try to set something in that sync queue.
The text was updated successfully, but these errors were encountered: