How to check if something is cached without reading?
bogardon opened this issue · 2 comments
bogardon commented
How to check if something is cached without reading?
jstn commented
For TMDiskCache you can use fileURLForKey:
For TMMemoryCache everything is already in memory, so there's no difference between calling objectForKey:
and checking if the object exists.
For TMCache, use diskCache
or memoryCache
and query them directly as needed.
bogardon commented
thanks sir.