マツシタのお勉強

Cache

Design TinyURL in LeetCode

Problem TinyUrl is a URL that a original URL is compressed. This problem is how should we design TinyURL services. https://leetcode.com/problems/design-tinyurl/#/solutionsDesign TinyURL - LeetCode How to code First, I prepare two HashMap t…

SDWebImageの処理を追ってみる

SDWebImageの振る舞いが気になる SDWebImageは良くWeb画像のダンロードや画像データのキャッシュに用いられるライブラリだがその中身の実装がどうなっているか気になって夜も眠れない。 SDWebImageについては以下を参照 keita-matsushita.hatenablog.com 処…

iOSのNSFileManagerについて

NSFileManager API Reference NSFileManager - Foundation | Apple Developer Documentation なぜNSFileManagerが気になるか SDWebImageのソースコードを読んでいたらキャッシュの保存場所が2つあった。MemoryとDiscだ。Memoryにキャッシュを保存する場合は…