Slide 6
Slide 6 text
What are caches?
A cache stores a portion of the data retrieved from a slower media on a faster media.
Many kinds: CPU caches (data, instructions), OS caches (pages), in-application
in-memory cache, shared/distributed caching server…
Moka cache is an in-memory cache. It is like a HashMap with a capacity limit.
低速のメディアから取得したデータの⼀部を、⾼速のメディアに保存するためのしくみ。
いろいろな種類がある:CPUキャッシュ、OSのページキャッシュ、アプリ内の
インメモリキャッシュ、共有/分散キャッシングサーバー、など。
Mokaキャッシュはインメモリキャッシュの⼀種。容量制限付きのHashMapのようなもの。
Time and space trade-o
ff
to improve performance.