需要有关使用 Three20/ASIHTTPRequest 或 CoreData 在 iPhone 编程中实现缓存的建议
我目前正在开发一个使用 Three20 作为基本框架的项目,但我发现 ASIHTTPRequest 处理表单请求非常容易,所以这就是我将它合并到我的项目中的原因。然后我还发现我需要缓存我的会话密钥,这样当我的应用程序终止时,我仍然可以在应用程序重新启动时检查我的用户是否已登录(然后我将再次使用基本核心数据来实现它)
如您所见,我的应用程序中有很多缓存功能项目,我无法找出什么是最好的方法,或者哪个是最好的方法?
我也不知道在 Three20 和 ASIHTTPRequest 中缓存是如何工作的。 我真的很想使用他们的缓存功能,因为我还会缓存提要等等
I'm currently working on a Project that uses Three20 as the base framework, but I found out that ASIHTTPRequest handles Form Requests so easily so that's why I incorporated it in my Project.. And then I also found out that I need to cache my Session Key so that when my application terminates I can still check that my user is Logged in when the application launches back (and then again I'll be implementing it using basic Core Data)
As you can see there's a lot of Caching functionality in my Project, and I can't find out what is the best way, or which is the best way?
I don't know also how caching works in both Three20 and ASIHTTPRequest..
I really wanted to use their caching functionalities because I'll be caching also feeds and more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望存储用户凭据,最好将它们存储在钥匙串中。您可以通过 钥匙串服务 API。有大量示例展示如何使用此 API。 示例 1。 示例 2。
If you're looking to store user credentials, it's best to store them in the Keychain. You can do this via the Keychain Services API. There are plenty of examples out there that show how to use this API. Example 1. Example 2.