# Reference a static variable in function docs

**URL:** <https://forum.elixirforum.com/t/reference-a-static-variable-in-function-docs/19880>\
**Category:** Questions\
**Tags:** static, variable, documentation\
**Created:** [February 3, 2019, 2:41am UTC](https://forum.elixirforum.com/t/reference-a-static-variable-in-function-docs/19880 "2019-02-03T02:41:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jeramyRR](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jeramyrr/32/722_2.png) [@jeramyRR](https://forum.elixirforum.com/u/jeramyRR)\
**Post date:** [February 3, 2019, 5:08am UTC](https://forum.elixirforum.com/t/reference-a-static-variable-in-function-docs/19880/3 "2019-02-03T05:08:13Z")

</div>

Doh, yes Module Attributes.

I just upgraded to 1.8.0 and tried again. This time #{@cache\_name} worked. I don’t think the resource I found earlier was for 1.8.0 though.

---

_[View the full topic](https://forum.elixirforum.com/t/reference-a-static-variable-in-function-docs/19880)._
