我在iOS模拟器中发现,在库缓存路径中有一个名为Cache.db的文件.
db中有一些表:
sqlite3 Cache.db SQLite version 3.7.5 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .table cfurl_cache_blob_data cfurl_cache_response cfurl_cache_receiver_data cfurl_cache_schema_version
我想知道这是做什么的?而且我们如何利用这个数据库?
解决方法
这是由
NSURLCache
使用的.当您创建
NSURLRequest
时,它将自动使用,除非您指定不想使用缓存.