# Using Cachex in Phoenix - working example?

**URL:** <https://forum.elixirforum.com/t/using-cachex-in-phoenix-working-example/12458>\
**Category:** Questions\
**Tags:** cache, phoenix\
**Created:** [February 12, 2018, 11:44pm UTC](https://forum.elixirforum.com/t/using-cachex-in-phoenix-working-example/12458 "2018-02-12T23:44:35Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![outlog](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@outlog](https://forum.elixirforum.com/u/outlog)\
**Post date:** [February 13, 2018, 10:22pm UTC](https://forum.elixirforum.com/t/using-cachex-in-phoenix-working-example/12458/13 "2018-02-13T22:22:56Z")

</div>

one question.. does Cachex swallow the get\_by bang (get\_by!) in case it doesn’t find any?

`Repo.get_by!(Mything, slug: slug)`

or does it blow up?

---

_[View the full topic](https://forum.elixirforum.com/t/using-cachex-in-phoenix-working-example/12458)._
