# Support memoize option for dry-system container register

**URL:** <https://discourse.dry-rb.org/t/support-memoize-option-for-dry-system-container-register/1171>\
**Category:** Ideas\
**Created:** [December 11, 2020, 5:11pm UTC](https://discourse.dry-rb.org/t/support-memoize-option-for-dry-system-container-register/1171 "2020-12-11T17:11:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianks](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/ianks/32/449_2.png) [@ianks](https://discourse.dry-rb.org/u/ianks)\
**Post date:** [December 11, 2020, 5:11pm UTC](https://discourse.dry-rb.org/t/support-memoize-option-for-dry-system-container-register/1171/1 "2020-12-11T17:11:26Z")

</div>

After dropping some some investigation, it looks like the dry-system container does not support the `memoize` option like a Dry::Container does. This would be really nice for us, because we would like to be able to memoize some things in production. Here’s an example of what it would look like:

```ruby
Container.boot(:ssr_renderer) do
  start do
    register(:ssr_renderer, memoize: false) do
      React::SSR::Renderer.new
    end
  end
end

```

In fact, I wonder if dry-system could just use dry-container here. Thoughts?

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/solnic/32/779_2.png) [@solnic](https://discourse.dry-rb.org/u/solnic)\
**Post date:** [December 14, 2020, 2:40pm UTC](https://discourse.dry-rb.org/t/support-memoize-option-for-dry-system-container-register/1171/2 "2020-12-14T14:40:09Z")

</div>

@ianks yes this is actually a bug, dry-system’s container is supposed to work like an extended dry-container. Please report an issue 🙇‍♂️

---

<div class="post-metadata">

**Author:** ![ianks](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/ianks/32/449_2.png) [@ianks](https://discourse.dry-rb.org/u/ianks)\
**Post date:** [December 15, 2020, 3:41pm UTC](https://discourse.dry-rb.org/t/support-memoize-option-for-dry-system-container-register/1171/3 "2020-12-15T15:41:47Z")

</div>

done!
