# Process dictionary as a cache

**URL:** <https://forum.elixirforum.com/t/process-dictionary-as-a-cache/23235>\
**Category:** Questions\
**Tags:** erlang, cache\
**Created:** [June 18, 2019, 5:25pm UTC](https://forum.elixirforum.com/t/process-dictionary-as-a-cache/23235 "2019-06-18T17:25:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![peerreynders](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/peerreynders/32/5826_2.png) [@peerreynders](https://forum.elixirforum.com/u/peerreynders)\
**Post date:** [June 18, 2019, 6:30pm UTC](https://forum.elixirforum.com/t/process-dictionary-as-a-cache/23235/4 "2019-06-18T18:30:24Z")

</div>

FYI:

[The Concepts of ETS](https://learnyousomeerlang.com/ets#the-concepts-of-ets)

> The main design objectives ETS had was to provide a way to store large amounts of data in Erlang with constant access time (functional data structures usually tend to flirt with logarithmic access time) and to have such storage look as if it were implemented as processes in order to keep their use simple and idiomatic.

[ETS as a cache](https://elixir-lang.org/getting-started/mix-otp/ets.html#ets-as-a-cache)

> Warning! Don’t use ETS as a cache prematurely! Log and analyze your application performance and identify which parts are bottlenecks, so you know whether you should cache, and what you should cache. This chapter is merely an example of how ETS can be used, once you’ve determined the need.

---

_[View the full topic](https://forum.elixirforum.com/t/process-dictionary-as-a-cache/23235)._
