---
layout: docs
title: setIsMemoized
id: class.Facebook.HackCodegen.CodegenFunctionish.setIsMemoized
docid: class.Facebook.HackCodegen.CodegenFunctionish.setIsMemoized
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenFunctionish.setIsMemoized/
---
# Facebook\\HackCodegen\\CodegenFunctionish::setIsMemoized()




``` Hack
public function setIsMemoized(
  bool $value = true,
): this;
```




## Parameters




- ` bool $value = true `




## Returns




+ ` this `